-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reroute when new repository is registered (#73761)
Today we fail to allocate searchable snapshot shards if the repository containing their underlying data is not registered with the cluster. This failure is somewhat messy, we allocate them and let the recovery fail, and furthermore we don't automatically retry the allocation if the repository is subsequently registered. This commit introduces an allocation decider to prevent the allocation of such shards, and explain more clearly why, and also a cluster state listener that performs a reroute when a new repository is registered. Relates #73669 Relates #73714
- Loading branch information
1 parent
772fb0e
commit eba76db
Showing
6 changed files
with
390 additions
and
43 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
Oops, something went wrong.