-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix PluginInfo bwc for opensearch_version field #12537
Conversation
Signed-off-by: Abhilasha Seth <[email protected]>
Compatibility status:Checks if related components are compatible with change 225de7b Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git] |
What's the reason to keep the breaking change in main? Either way, lets add the same test in main regardless of what it's returning. |
❕ Gradle check result for 225de7b: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #12537 +/- ##
============================================
+ Coverage 71.08% 71.18% +0.09%
- Complexity 59924 59970 +46
============================================
Files 4945 4945
Lines 282349 282349
Branches 41369 41369
============================================
+ Hits 200718 200993 +275
+ Misses 64577 64299 -278
- Partials 17054 17057 +3 ☔ View full report in Codecov by Sentry. |
builder.field("opensearch_version", opensearchVersionRanges); | ||
builder.field("opensearch_version", getOpenSearchVersionRangesString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the super quick fix. Should we do an additional pass at all places of usage to confirm they are bwc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All callers that require a serialized form of PluginInfo will use one of the following:
- writeTo method - already updated to be bwc
- toXContent method - updated with this PR
- toString method - already updated to be bwc
PR for main - #12543 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge #12543 instead and backport it, and close this one?
Right, missed closing this one. |
Description
Updated opensearch_version field in PluginInfo json to represent a string of single version as opposed to a list of single version to ensure bwc in 2.x.
Without this fix
With fix:
Related Issues
Resolves #[12528]
Check List
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.