Commit 582e531
committed
asim: reproduce loss of quorum during zone cfg change with suspect nodes
I believe this newly added datadriven test reproduces cockroachdb#152604.
The test sets up five nodes with 5x replication, marks n4 and n5 as non-live,
and drops the repication factor to 3. We see that the allocator merrily removes
replicas from n1-n3 and loses quorum in the process. If it removed any replicas
in this scenario, it really ought to be removing from n4 and n5.
> next replica action: remove voter
> removing voting replica n2,s2 due to over-replication: [1*:2, 2:2, 3:2, 4:2, 5:2]
Then:
> unable to take action - live voters [(n1,s1):1 (n3,s3):3] don't meet quorum of 3
Informs cockroachdb#152604.
Epic: none1 parent b97d3b3 commit 582e531
File tree
1 file changed
+48
-0
lines changed- pkg/kv/kvserver/asim/tests/testdata/non_rand/sma
1 file changed
+48
-0
lines changedLines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments