Skip to content

Add Check for Metadata Existence in BlobStoreRepository (#59141)#59216

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

Add Check for Metadata Existence in BlobStoreRepository (#59141)#59216
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:59141-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

In order to ensure that we do not write a broken piece of RepositoryData
because the phyiscal repository generation was moved ahead more than one step
by erroneous concurrent writing to a repository we must check whether or not
the current assumed repository generation exists in the repository physically.
Without this check we run the risk of writing on top of stale cached repository data.

Relates #56911

backport of #59141

In order to ensure that we do not write a broken piece of `RepositoryData`
because the phyiscal repository generation was moved ahead more than one step
by erroneous concurrent writing to a repository we must check whether or not
the current assumed repository generation exists in the repository physically.
Without this check we run the risk of writing on top of stale cached repository data.

Relates #56911
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Jul 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 Jul 8, 2020
@original-brownbear original-brownbear merged commit 9268b25 into elastic:7.x Jul 8, 2020
@original-brownbear original-brownbear deleted the 59141-7.x branch July 8, 2020 12:25
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