-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Replace Version with RemoteVersion in reindex module #18457
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
Conversation
|
❌ Gradle check result for 03f243f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
You've got a spotless code formatting failure here. You can fix it with Also note you can catch these failures locally by running |
|
❕ Gradle check result for fed080e: 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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #18457 +/- ##
============================================
+ Coverage 72.80% 72.85% +0.05%
- Complexity 68609 68690 +81
============================================
Files 5572 5573 +1
Lines 315196 315254 +58
Branches 45750 45760 +10
============================================
+ Hits 229466 229691 +225
+ Misses 67166 67004 -162
+ Partials 18564 18559 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
❌ Gradle check result for 5d31637: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❕ Gradle check result for 5d31637: 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. |
modules/reindex/src/main/java/org/opensearch/index/reindex/remote/RemoteVersion.java
Show resolved
Hide resolved
modules/reindex/src/main/java/org/opensearch/index/reindex/remote/RemoteVersion.java
Outdated
Show resolved
Hide resolved
modules/reindex/src/main/java/org/opensearch/index/reindex/remote/RemoteVersion.java
Show resolved
Hide resolved
|
❌ Gradle check result for b4ce564: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❕ Gradle check result for e823da8: 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. |
|
This PR is stalled because it has been open for 30 days with no activity. |
msfroh
left a comment
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.
Just a small callout on the comparator, but then I think this is ready to go. Thanks again, @HyunSangHan!
modules/reindex/src/main/java/org/opensearch/index/reindex/remote/RemoteVersion.java
Show resolved
Hide resolved
|
❌ Gradle check result for be045bd: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Okay -- I think this just about looks ready to go, but we're still getting one integ test failure: I think that's just a result of a Lucene update on the 2.19 branch. @HyunSangHan, can you please rebase onto the latest |
@msfroh Thanks! I did right before now. |
|
❌ Gradle check result for ba6c432: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
- Add RemoteVersion class with backward compatibility for Elasticsearch versions - Support version parsing from string with distribution parameter - Include version comparison methods (before, after, onOrAfter, onOrBefore) - Support both Elasticsearch and OpenSearch version constants This introduces a dedicated version class for remote reindex operations, isolating it from the global Version class while maintaining full backward compatibility with existing Elasticsearch clusters. Signed-off-by: Hyunsang Han <[email protected]>
- Replace Version class usage with RemoteVersion in remote reindex components - Update RemoteRequestBuilders to use RemoteVersion constants - Update RemoteResponseParsers with improved distribution handling - Update RemoteScrollableHitSource for version lookup compatibility This completes the migration from global Version class to dedicated RemoteVersion class in remote reindex functionality. Signed-off-by: Hyunsang Han <[email protected]>
Signed-off-by: Hyunsang Han <[email protected]>
Simplifies the RemoteVersion class by replacing the distribution string field with a boolean flag, making the code more readable and maintainable. Signed-off-by: Hyunsang Han <[email protected]>
Signed-off-by: Hyunsang Han <[email protected]>
|
❌ Gradle check result for 2c68c88: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
This PR is stalled because it has been open for 30 days with no activity. |
|
❕ Gradle check result for 2c68c88: 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. |
|
Hi @msfroh, |
|
Hey @HyunSangHan! Sorry for the delay, and thank you for tagging me. I think this looks good and gets us even closer to cleaning up the |
…ect#18457) - Add RemoteVersion class with backward compatibility for Elasticsearch versions - Support version parsing from string with distribution parameter - Include version comparison methods (before, after, onOrAfter, onOrBefore) - Support both Elasticsearch and OpenSearch version constants --------- Signed-off-by: Hyunsang Han <[email protected]>
…ect#18457) - Add RemoteVersion class with backward compatibility for Elasticsearch versions - Support version parsing from string with distribution parameter - Include version comparison methods (before, after, onOrAfter, onOrBefore) - Support both Elasticsearch and OpenSearch version constants --------- Signed-off-by: Hyunsang Han <[email protected]>
Description
Replaces the usage of
Versionclass withRemoteVersionclass in the reindex module's remote components to provide better isolation and backward compatibility for remote reindex operations.Related Issues
Resolves #18391
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.