Skip to content

Fix NPE in Partial Snapshot Without Global State (#55776)#55783

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:55776-7.x
Apr 27, 2020
Merged

Fix NPE in Partial Snapshot Without Global State (#55776)#55783
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:55776-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

We make sure to filter shard generations for indices that are missing
from the metadata when finalizing a partial snapshot (from concurrent index deletion)
but we failed to account for the case where we manually build a fake metadata instance
for snapshots without the global state.
Fixed this by handling missing indices by skipping, same way we do it for filtering the
shard generations.

Relates #50234

backport of #55776

We make sure to filter shard generations for indices that are missing
from the metadata when finalizing a partial snapshot (from concurrent index deletion)
but we failed to account for the case where we manually build a fake metadata instance
for snapshots without the global state.
Fixed this by handling missing indices by skipping, same way we do it for filtering the
shard generations.

Relates #50234
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Apr 27, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@original-brownbear original-brownbear merged commit 4403b69 into elastic:7.x Apr 27, 2020
@original-brownbear original-brownbear deleted the 55776-7.x branch April 27, 2020 08:07
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