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

Optimize Snapshot Finalization (#42723) #43908

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

original-brownbear
Copy link
Member

  • Delete index-N blobs and segement blobs in one single bulk delete instead of in separate ones to save RPC calls on implementations that have bulk deletes implemented
  • Don't fail snapshot because deleting old index-N failed
    • This resulted in needlessly logging finalization failures and makes analysis of failures harder going forward as well as incorrect index.latest blobs
    • Write the index.latest first, then try to clean up the old index-N

Backport of #42723

* Optimize Snapshot Finalization

* Delete index-N blobs and segement blobs in one single bulk delete instead of in separate ones to save RPC calls on implementations that have bulk deletes implemented
* Don't fail snapshot because deleting old index-N failed, this results in needlessly logging finalization failures and makes analysis of failures harder going forward as well as incorrect index.latest blobs
@original-brownbear original-brownbear merged commit 7059224 into elastic:7.x Jul 3, 2019
@original-brownbear original-brownbear deleted the 42723-7.x branch July 3, 2019 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant