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

[Snapshot V2] Remove orphan timestamps post create snapshot completion #16148

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

gbbafna
Copy link
Collaborator

@gbbafna gbbafna commented Oct 1, 2024

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

  • Functionality includes testing.
  • 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.

Copy link
Contributor

github-actions bot commented Oct 1, 2024

❌ 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?

Copy link
Contributor

github-actions bot commented Oct 1, 2024

❌ 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>
Copy link
Contributor

github-actions bot commented Oct 3, 2024

❌ 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>
Copy link
Contributor

github-actions bot commented Oct 3, 2024

✅ Gradle check result for 14f0323: SUCCESS

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 36.00000% with 32 lines in your changes missing coverage. Please review.

Project coverage is 72.08%. Comparing base (4e3a6d0) to head (14f0323).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...ava/org/opensearch/snapshots/SnapshotsService.java 24.24% 24 Missing and 1 partial ⚠️
...remotestore/RemoteStorePinnedTimestampService.java 58.82% 6 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@gbbafna gbbafna merged commit 6020c58 into opensearch-project:main Oct 3, 2024
33 of 34 checks passed
@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label Oct 3, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 3, 2024
#16148)

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit 6020c58)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sachinpkale pushed a commit that referenced this pull request Oct 3, 2024
#16148) (#16178)

(cherry picked from commit 6020c58)

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants