forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: fix bug that could lead to invalid non-voter rebalance atte…
…mpts A bug was introduced in cockroachdb#61239 which made it such that non-voters could, in certain edge case scenarios, attempt to rebalance to stores that already had a voting replica for the same range. However, this bug wouldn't actually materialize into user observable symptoms because such rebalance decisions were rejected before the `replicateQueue` ever tried to execute them. See: https://github.com/cockroachdb/cockroach/blob/8bcd038ab6b76f6bf5894f2ffbbdbf10108b4c32/pkg/kv/kvserver/replicate_queue.go#L1257-L1271. This commit cleans this up and adds a test demonstrating one such edge case. Release note: None
- Loading branch information
1 parent
dadff0d
commit 6c829c2
Showing
2 changed files
with
81 additions
and
1 deletion.
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