-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allocatorimpl: fix replace constraints check function
Previously, it was possible for replica replacement to not return a valid target when some constraint was initially undersatisfied in addition to the replica being replaced satisfying a separate constraint. When this occurred, it could stall decommissioning a node, as replicas become stuck with the allocator returning no valid replacement target. Update the `replaceConstraintsCheck` function to correctly consider whether the replacement store satisfies the constraint when computing if the replacement is necessary. Fixes: #117886 Part of: #117891 Release note (bug fix): Decommissioning replicas which are part of a mis-replicated range will no longer get stuck on a rebalance operation that was falsely determined to be unsafe. This bug was introduced in 23.1.0.
- Loading branch information
Showing
4 changed files
with
254 additions
and
42 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
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