Skip to content

Fix Infinite Retry Loop in loading RepositoryData (#50987)#51094

Merged
original-brownbear merged 1 commit intoelastic:7.6from
original-brownbear:50987-7.6
Jan 16, 2020
Merged

Fix Infinite Retry Loop in loading RepositoryData (#50987)#51094
original-brownbear merged 1 commit intoelastic:7.6from
original-brownbear:50987-7.6

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

  • Fix Infinite Retry Loop in loading RepositoryData

We were running into an infinite loop when trying to load corrupted (or otherwise un-loadable)
repository data for a repo that uses best effort consistency (e.g. that was just freshly mounted
as done in the test) because we kepy resetting to -1 on IOException, listing and finding the broken
generation N and then interpreted the subsequent reset to -1 as a concurrent change to the repository.

backport of #50987

* Fix Infinite Retry Loop in loading RepositoryData

We were running into an infinite loop when trying to load corrupted (or otherwise un-loadable)
repository data for a repo that uses best effort consistency (e.g. that was just freshly mounted
as done in the test) because we kepy resetting to `-1` on `IOException`, listing and finding the broken
generation `N` and then interpreted the subsequent reset to `-1` as a concurrent change to the repository.
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Jan 16, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Jenkins run elasticsearch-ci/2 unrelated failure

@original-brownbear original-brownbear merged commit 1f4686f into elastic:7.6 Jan 16, 2020
@original-brownbear original-brownbear deleted the 50987-7.6 branch January 16, 2020 17:48
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