Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 2.17 BWC with latest backend integrations #612

Merged
merged 4 commits into from
Feb 12, 2025

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Feb 11, 2025

Description

#591 and #598 added integrations with backend API enhancements only available in 2.19+. Since we want to support 2.17 backend datasources as well, we need to have conditional logic for executing these updated APIs. This PR adds that logic by:

  1. Only running synchronous provisioning if the data source version is >=2.19
  2. Only running the search with verbose_pipeline=true if the data source version is >=2.19.
    It does this by propagating the data source version where applicable, and executing different APIs based on the semver checks.

Also adds an NPE check on the model fields in the legacy processors during template conversion.

Testing:

  • tested without any datasource, with datasource 2.19+, and with datasource <2.19 for both APIs
  • audited all places where API is triggered from client-side for both APIs to ensure we pass the datasource version where applicable

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ohltyler ohltyler added enhancement New feature or request backport main bwc labels Feb 11, 2025
@ohltyler ohltyler marked this pull request as draft February 11, 2025 19:00
@ohltyler ohltyler marked this pull request as ready for review February 11, 2025 21:43
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@ohltyler ohltyler merged commit 474a8a7 into opensearch-project:2.x Feb 12, 2025
5 of 6 checks passed
@ohltyler ohltyler deleted the 217-compatibility branch February 12, 2025 16:15
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 12, 2025
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
(cherry picked from commit 474a8a7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Feb 12, 2025
(cherry picked from commit 474a8a7)

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants