Commit bc16e41
committed
mma: convert kvpb.ReplicationChanges to a single change per store
Previously, a VOTER => NON_VOTER transition, or vice versa, was producing
multiple changes for a store, which is invalid according to the contract
of PendingRangeChange. This is now fixed by changing the logic in
mmaintegration.convertReplicaChangeToMMA, and adding a
mmaprototype.MakeReplicaTypeChange function.
Informs #157049
Epic: CRDB-55052
Release note: None1 parent ae0b3d7 commit bc16e41
File tree
10 files changed
+568
-152
lines changed- pkg
- kv/kvserver
- allocator/mmaprototype
- mmaintegration
- testdata
10 files changed
+568
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
1596 | 1597 | | |
1597 | 1598 | | |
1598 | 1599 | | |
| 1600 | + | |
1599 | 1601 | | |
1600 | 1602 | | |
1601 | 1603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | | - | |
| 835 | + | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
| 852 | + | |
853 | 853 | | |
854 | | - | |
| 854 | + | |
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| |||
0 commit comments