Commit ab5a43f
committed
mmaprototype: allow rebalancing between stores on the same node
Previously, when MMA constructed the candidate set, it excluded stores on nodes
that already had replicas, including the current node itself. However,
rebalancing replicas across different stores on the same node should be allowed.
This commit corrects that logic. Note that the store itself has already been
excluded earlier (see https://github.com/cockroachdb/cockroach/blob/da4a31068dc9f268d423aa4d5fd72b29c61942bc/pkg/kv/kvserver/allocator/mmaprototype/allocator_state.go#L614-L623).1 parent 04ccf4b commit ab5a43f
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
676 | 682 | | |
677 | 683 | | |
678 | 684 | | |
| |||
0 commit comments