Skip to content

Fix Snapshot Out of Order Finalization Repo Corruption (#75362)#75415

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:75362-7.x
Jul 16, 2021
Merged

Fix Snapshot Out of Order Finalization Repo Corruption (#75362)#75415
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:75362-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

  • Fix up shard generations in SnapshotsInProgress during snapshot finalization (don't do it earlier because it's a really heavy computation and we have a ton of places where it would have to run).
  • Adjust finalization queue to be able to work with changing snapshot entries after they've been enqueued for finalisation
  • Still one remaining bug left after this (see TODO about leaking generations) that I don't feel confident in fixing for 7.13.4 due to the complexity of a fix and how minor the blob leak is (+ it's cleaned up just fine during snapshot deletes)

Closes #75336

backport of #75362

* Fix up shard generations in `SnapshotsInProgress` during snapshot finalization (don't do it earlier because it's a really heavy computation and we have a ton of places where it would have to run).
* Adjust finalization queue to be able to work with changing snapshot entries after they've been enqueued for finalisation
* Still one remaining bug left after this (see TODO about leaking generations) that I don't feel confident in fixing for `7.13.4` due to the complexity of a fix and how minor the blob leak is (+ it's cleaned up just fine during snapshot deletes)

Closes #75336
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Jul 16, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jul 16, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@original-brownbear original-brownbear merged commit f79dee7 into elastic:7.x Jul 16, 2021
@original-brownbear original-brownbear deleted the 75362-7.x branch July 16, 2021 14:55
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 Team:Distributed Meta label for distributed team. v7.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants