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 <spencer.jones2@tylertech.com>

* Fix comment. Update changelog.

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* New parameters needs to only used for new version

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* Add missing equals and hash implemenation for new parameters

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* Add some tests

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* Add some more tests

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* Use CountDownLatch

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* Add two more tests. Refactoring and cleanup.

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* 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 <spencer.jones2@tylertech.com>

* Refactoring

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

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

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

* Convert to paramaterized tests

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>

---------

Signed-off-by: Spencer G. Jones <spencer.jones2@tylertech.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Co-authored-by: Daniel Widdis <widdis@gmail.com>
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.

@saratvemulapalli saratvemulapalli merged commit c34bee4 into opensearch-project:2.x Oct 23, 2024
58 of 60 checks passed
@dbwiddis dbwiddis deleted the backport-16292-to-2.x branch October 23, 2024 17:00
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