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

[Backport 2.x] Add new parameters to snapshot restore to rename the restored aliases… #16447

Merged

Conversation

dbwiddis
Copy link
Member

Backport 9489a21 from #16292

opensearch-project#16292)

* Add new parameters to snapshot restore to rename the restored aliases similar to the existing parameters to rename indexes

Signed-off-by: Spencer G. Jones <[email protected]>

* Fix comment. Update changelog.

Signed-off-by: Spencer G. Jones <[email protected]>

* New parameters needs to only used for new version

Signed-off-by: Spencer G. Jones <[email protected]>

* Add missing equals and hash implemenation for new parameters

Signed-off-by: Spencer G. Jones <[email protected]>

* Add some tests

Signed-off-by: Spencer G. Jones <[email protected]>

* Add some more tests

Signed-off-by: Spencer G. Jones <[email protected]>

* Use CountDownLatch

Signed-off-by: Spencer G. Jones <[email protected]>

* Add two more tests. Refactoring and cleanup.

Signed-off-by: Spencer G. Jones <[email protected]>

* Use CURRENT version to pass backward compatibility tests. Change to V2.18 later once it is backported into that version.

Signed-off-by: Spencer G. Jones <[email protected]>

* Refactoring

Signed-off-by: Spencer G. Jones <[email protected]>

* Overwriting aliases variable causes test failures for reasons I do not understand. Also some refactoring.

Signed-off-by: Spencer G. Jones <[email protected]>

* Convert to paramaterized tests

Signed-off-by: Spencer G. Jones <[email protected]>

---------

Signed-off-by: Spencer G. Jones <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Co-authored-by: Daniel Widdis <[email protected]>
Copy link
Contributor

✅ Gradle check result for 4077187: SUCCESS

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 63.82979% with 17 lines in your changes missing coverage. Please review.

Project coverage is 71.83%. Comparing base (41258e7) to head (4077187).
Report is 6 commits behind head on 2.x.

Files with missing lines Patch % Lines
...ster/snapshots/restore/RestoreSnapshotRequest.java 57.14% 3 Missing and 9 partials ⚠️
...apshots/restore/RestoreSnapshotRequestBuilder.java 0.00% 4 Missing ⚠️
.../java/org/opensearch/snapshots/RestoreService.java 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #16447      +/-   ##
============================================
+ Coverage     71.77%   71.83%   +0.05%     
+ Complexity    65344    65335       -9     
============================================
  Files          5312     5312              
  Lines        304914   304968      +54     
  Branches      44425    44437      +12     
============================================
+ Hits         218861   219059     +198     
+ Misses        67803    67574     -229     
- Partials      18250    18335      +85     

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

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