|
4 | 4 | v1
|
5 | 5 | ----
|
6 | 6 | voters=(1)
|
7 |
| -1: StateProbe match=0 next=0 |
| 7 | +1: StateProbe match=0 commit=0 next=0 |
8 | 8 |
|
9 | 9 | simple
|
10 | 10 | v2
|
11 | 11 | ----
|
12 | 12 | voters=(1 2)
|
13 |
| -1: StateProbe match=0 next=0 |
14 |
| -2: StateProbe match=0 next=1 |
| 13 | +1: StateProbe match=0 commit=0 next=0 |
| 14 | +2: StateProbe match=0 commit=0 next=1 |
15 | 15 |
|
16 | 16 | simple
|
17 | 17 | v3
|
18 | 18 | ----
|
19 | 19 | voters=(1 2 3)
|
20 |
| -1: StateProbe match=0 next=0 |
21 |
| -2: StateProbe match=0 next=1 |
22 |
| -3: StateProbe match=0 next=2 |
| 20 | +1: StateProbe match=0 commit=0 next=0 |
| 21 | +2: StateProbe match=0 commit=0 next=1 |
| 22 | +3: StateProbe match=0 commit=0 next=2 |
23 | 23 |
|
24 | 24 | # Can atomically demote and promote without a hitch.
|
25 | 25 | # This is pointless, but possible.
|
26 | 26 | simple
|
27 | 27 | l1 v1
|
28 | 28 | ----
|
29 | 29 | voters=(1 2 3)
|
30 |
| -1: StateProbe match=0 next=0 |
31 |
| -2: StateProbe match=0 next=1 |
32 |
| -3: StateProbe match=0 next=2 |
| 30 | +1: StateProbe match=0 commit=0 next=0 |
| 31 | +2: StateProbe match=0 commit=0 next=1 |
| 32 | +3: StateProbe match=0 commit=0 next=2 |
33 | 33 |
|
34 | 34 | # Can demote a voter.
|
35 | 35 | simple
|
36 | 36 | l2
|
37 | 37 | ----
|
38 | 38 | voters=(1 3) learners=(2)
|
39 |
| -1: StateProbe match=0 next=0 |
40 |
| -2: StateProbe match=0 next=1 learner |
41 |
| -3: StateProbe match=0 next=2 |
| 39 | +1: StateProbe match=0 commit=0 next=0 |
| 40 | +2: StateProbe match=0 commit=0 next=1 learner |
| 41 | +3: StateProbe match=0 commit=0 next=2 |
42 | 42 |
|
43 | 43 | # Can atomically promote and demote the same voter.
|
44 | 44 | # This is pointless, but possible.
|
45 | 45 | simple
|
46 | 46 | v2 l2
|
47 | 47 | ----
|
48 | 48 | voters=(1 3) learners=(2)
|
49 |
| -1: StateProbe match=0 next=0 |
50 |
| -2: StateProbe match=0 next=1 learner |
51 |
| -3: StateProbe match=0 next=2 |
| 49 | +1: StateProbe match=0 commit=0 next=0 |
| 50 | +2: StateProbe match=0 commit=0 next=1 learner |
| 51 | +3: StateProbe match=0 commit=0 next=2 |
52 | 52 |
|
53 | 53 | # Can promote a voter.
|
54 | 54 | simple
|
55 | 55 | v2
|
56 | 56 | ----
|
57 | 57 | voters=(1 2 3)
|
58 |
| -1: StateProbe match=0 next=0 |
59 |
| -2: StateProbe match=0 next=1 |
60 |
| -3: StateProbe match=0 next=2 |
| 58 | +1: StateProbe match=0 commit=0 next=0 |
| 59 | +2: StateProbe match=0 commit=0 next=1 |
| 60 | +3: StateProbe match=0 commit=0 next=2 |
0 commit comments