Skip to content

Fix Index Deletion during Snapshot Finalization (#50202)#50228

Merged
original-brownbear merged 3 commits intoelastic:7.5from
original-brownbear:50202-7.5
Dec 16, 2019
Merged

Fix Index Deletion during Snapshot Finalization (#50202)#50228
original-brownbear merged 3 commits intoelastic:7.5from
original-brownbear:50202-7.5

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

With #45689 making it so that index metadata is written
after all shards have been snapshotted we can't delete indices
that are part of the upcoming snapshot finalization any longer
and it is not sufficient to check if all shards of an index have been
snapshotted before deciding that it is safe to delete it.
This change forbids deleting any index that is in the process of being
snapshot to avoid issues during snapshot finalization.

Relates #50200 (doesn't fully fix yet because we're not fixing the partial=true
snapshot case here

backport of #50202

With #45689 making it so that index metadata is written
after all shards have been snapshotted we can't delete indices
that are part of the upcoming snapshot finalization any longer
and it is not sufficient to check if all shards of an index have been
snapshotted before deciding that it is safe to delete it.
This change forbids deleting any index that is in the process of being
snapshot to avoid issues during snapshot finalization.

Relates #50200 (doesn't fully fix yet because we're not fixing the `partial=true`
snapshot case here
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Dec 16, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@original-brownbear original-brownbear merged commit c95e51c into elastic:7.5 Dec 16, 2019
@original-brownbear original-brownbear deleted the 50202-7.5 branch December 16, 2019 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants