-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix repo name at allocation time (#73669)
Today when allocating a previously-allocated searchable snapshot shard we simulate a recovery source which refers to the repository named in the index metadata. This doesn't work if the repository was renamed since the index was mounted, which particularly may occur if the index was itself restored from a snapshot. With this commit we instead set up the recovery source to refer to the repository whose UUID matches the one in the index metadata. We rely on such a repository existing at allocation time; if it does not then the shards are not allocated.
- Loading branch information
1 parent
d654c61
commit cb463c4
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters