Skip to content

[8.x] Use the system index descriptor in the snapshot blob cache cleanup task (#120937) #121053

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

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

pxsalehi
Copy link
Member

Backports the following commits to 8.x:

…sk (elastic#120937)

Clean up of the `.snapshot-blob-cache*` system index is done only on the
node that hosts the primary of the shard 0 of that index. When the index
is migrated as part of an upgrade test e.g. v7 -> v8, the index is
reindexed to a new index `.snapshot-blob-cache-reindexed-for-9`. The
code scheduling this clean up task is not able to locate the shard and
would never trigger a clean up after the upgrade. This change uses the
system index descriptor to find the matching shard and would work for
future versions too.

Closes elastic#120518
@pxsalehi pxsalehi added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed Coordination Meta label for Distributed Coordination team labels Jan 28, 2025
@elasticsearchmachine elasticsearchmachine merged commit 604c015 into elastic:8.x Jan 28, 2025
15 checks passed
@pxsalehi pxsalehi deleted the backport/8.x/pr-120937 branch January 28, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team v8.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants