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

Added version-specific OpenSearchWorkCoordinators #1226

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

chelma
Copy link
Member

@chelma chelma commented Jan 9, 2025

Description

  • Checkpoint. This PR updates the RFS code to use a version-specific OpenSearchWorkCoordinator. Currently, there's only one supported version (OS 2), which presents the existing behavior. E.g. there's no functional changes in this PR, it just sets up the plumbing to add Coordinators for new versions (like ES 6.8).

Issues Resolved

Testing

Ran the unit tests

Check List

  • New functionality includes testing
  • Public documentation issue/PR created, if applicable.

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.

Signed-off-by: Chris Helma <[email protected]>
@@ -181,6 +181,12 @@ public static class Args {
description = ("Version of the source cluster."))
public Version sourceVersion = Version.fromString("ES 7.10");

@Parameter(required = true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Target version detection build into the OpenSearch client, can we use that instead of requiring a parameter?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy to do, thanks for the idea! I'd forgotten about this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right, 6.8 is not an experimental target, if we are only supporting using RFS for 6.8 -> 6.8 migration, then we should only update the specific scenarios that we want for its verification.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We aren't officially supporting ES 6.8 as a target, it's being added as an un-announced feature for a specific user. Experimental seems like an appropriate adjective to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought about it a bit more and think I better understand your point - we shouldn't have 6.8 in this class at all and just update the tests to cover it. Makes sense, will address.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.27%. Comparing base (9010fcf) to head (163d482).
Report is 1 commits behind head on subshard.

Additional details and impacted files
@@              Coverage Diff               @@
##             subshard    #1226      +/-   ##
==============================================
- Coverage       80.30%   80.27%   -0.04%     
- Complexity       3101     3114      +13     
==============================================
  Files             423      425       +2     
  Lines           15850    15880      +30     
  Branches         1072     1072              
==============================================
+ Hits            12728    12747      +19     
- Misses           2474     2483       +9     
- Partials          648      650       +2     
Flag Coverage Δ
unittests 80.27% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Chris Helma <[email protected]>
@chelma chelma merged commit b0d3304 into opensearch-project:subshard Jan 10, 2025
22 checks passed
@chelma chelma deleted the MIGRATIONS-2285 branch January 10, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants