Skip to content

Fix Broken Numeric Shard Generations in RepositoryData (#57813)#57825

Merged
original-brownbear merged 1 commit intoelastic:7.7from
original-brownbear:57813-7.7
Jun 8, 2020
Merged

Fix Broken Numeric Shard Generations in RepositoryData (#57813)#57825
original-brownbear merged 1 commit intoelastic:7.7from
original-brownbear:57813-7.7

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

Fix broken numeric shard generations when reading them from the wire
or physically from the physical repository.
This should be the cheapest way to clean up broken shard generations
in a BwC and safe-to-backport manner for now. We can potentially
further optimize this by also not doing the checks on the generations
based on the versions we see in the RepositoryData but I don't think
it matters much since we will read RepositoryData from cache in almost
all cases.

Closes #57798

backport of #57813

Fix broken numeric shard generations when reading them from the wire
or physically from the physical repository.
This should be the cheapest way to clean up broken shard generations
in a BwC and safe-to-backport manner for now. We can potentially
further optimize this by also not doing the checks on the generations
based on the versions we see in the `RepositoryData` but I don't think
it matters much since we will read `RepositoryData` from cache in almost
all cases.

Closes #57798
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Jun 8, 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 Jun 8, 2020
@original-brownbear original-brownbear merged commit 00a6c50 into elastic:7.7 Jun 8, 2020
@original-brownbear original-brownbear deleted the 57813-7.7 branch June 8, 2020 16: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 Team:Distributed Meta label for distributed team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants