-
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
[Snapshot V2] Remove orphan timestamps post create snapshot completion #16148
Conversation
❌ Gradle check result for 0503f63: 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? |
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Show resolved
Hide resolved
❌ Gradle check result for d045995: 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? |
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
❌ Gradle check result for 1cfb6c7: 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? |
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16148 +/- ##
============================================
+ Coverage 71.91% 72.08% +0.17%
- Complexity 64491 64590 +99
============================================
Files 5289 5289
Lines 301509 301559 +50
Branches 43557 43563 +6
============================================
+ Hits 216818 217370 +552
+ Misses 66892 66393 -499
+ Partials 17799 17796 -3 ☔ View full report in Codecov by Sentry. |
opensearch-project#16148) Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
opensearch-project#16148) Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
opensearch-project#16148) Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Description
We update pinned timestamps before finalizing the snapshot . In case post pinning timestamp, finalizing snapshot can fail . This leads to orphan pinned timestamps. This will leak data in remote store.
In this change, post every create snapshot operation, we find the orphan pinned timestamps and then unpin it .
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
API changes companion pull request created, if applicable.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.