-
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 Interop] Add Logic in Lock Manager to cleanup stale data po… #8472
[Snapshot Interop] Add Logic in Lock Manager to cleanup stale data po… #8472
Conversation
tagging @gbbafna @sachinpkale to look into the PR. |
Gradle Check (Jenkins) Run Completed with:
|
aea333d
to
3798261
Compare
tagging @sohami as well to take a look into the changes. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
f5f03f5
to
2c7b50b
Compare
Gradle Check (Jenkins) Run Completed with:
|
20296d3
to
cf89b2b
Compare
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:
|
Compatibility status:
|
…st index deletion. Signed-off-by: Harish Bhakuni <[email protected]>
cf89b2b
to
87a4658
Compare
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #8472 +/- ##
============================================
- Coverage 71.01% 71.00% -0.02%
+ Complexity 57248 57238 -10
============================================
Files 4765 4765
Lines 270315 270332 +17
Branches 39534 39537 +3
============================================
- Hits 191972 191946 -26
- Misses 62170 62210 +40
- Partials 16173 16176 +3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-8472-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 5670d2a2be92602c8e8e38cc8fec7ddf5737ed52
# Push it to GitHub
git push --set-upstream origin backport/backport-8472-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]>
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (#8472) (#9769) Signed-off-by: Harish Bhakuni <[email protected]> (cherry picked from commit 5670d2a)
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> Signed-off-by: Kaushal Kumar <[email protected]>
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
…st index deletion. (opensearch-project#8472) Signed-off-by: Harish Bhakuni <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
…st index deletion.
Description
Changes to Cleanup Stale Remote Store Data Post Index Deletion if there are no more locks on metadata files.
Here, we are extending LockManager implementation and adding a new method which will along with releasing lock would also attempt cleanup of remote store stale files.
As BlobStoreRepository implementation already have cluster state, we will use that to determine if index is deleted or not, if index is deleted we will call the new method
releaseAndCleanup
which will release lock and then if there are no more locks in the directory, it will try to cleanup the directory.Related Issues
Resolves #8469
Check List
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.