Skip to content

Remove Dead Code from Closed Index Snapshot Logic (#56764)#59398

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:56764-7.x
Jul 13, 2020
Merged

Remove Dead Code from Closed Index Snapshot Logic (#56764)#59398
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:56764-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

The code path for closed indices is dead code here ever since #39644
because shards(currentState, indexIds, ...) does not set
MISSING on a closed index's shard that is assigned any longer. Before that change it would always set MISSING for a closed index's shard even it was assigned.
=> simplified the code accordingly.

backport of #56764

The code path for closed indices is dead code here ever since #39644
because `shards(currentState, indexIds, ...)` does not set
`MISSING` on a closed index's shard that is assigned any longer. Before that change it would always set `MISSING` for a closed index's shard even it was assigned.
=> simplified the code accordingly.
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Jul 13, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jul 13, 2020
@original-brownbear original-brownbear merged commit 4e574a7 into elastic:7.x Jul 13, 2020
@original-brownbear original-brownbear deleted the 56764-7.x branch July 13, 2020 12:49
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants