Commit a8b8441
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 cockroachdb#157049
Epic: CRDB-55052
Release note: None1 parent 0375f11 commit a8b8441
File tree
10 files changed
+658
-157
lines changed- pkg
- kv/kvserver
- allocator/mmaprototype
- mmaintegration
- testdata
10 files changed
+658
-157
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 | | |
| |||
1597 | 1598 | | |
1598 | 1599 | | |
1599 | 1600 | | |
| 1601 | + | |
1600 | 1602 | | |
1601 | 1603 | | |
1602 | 1604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments