mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Initializing at LastIndex+1 meant that new peers would not be probed immediately when they appeared in the leader's config, which delays their getting caught up.
25 lines
623 B
Plaintext
25 lines
623 B
Plaintext
# Verify that when a voter is demoted in a joint config, it will show up in
|
|
# learners_next until the joint config is left, and only then will the progress
|
|
# turn into that of a learner, without resetting the progress. Note that this
|
|
# last fact is verified by `next`, which can tell us which "round" the progress
|
|
# was originally created in.
|
|
|
|
simple
|
|
v1
|
|
----
|
|
voters=(1)
|
|
1: StateProbe match=0 next=0
|
|
|
|
enter-joint
|
|
v2 l1
|
|
----
|
|
voters=(2)&&(1) learners_next=(1)
|
|
1: StateProbe match=0 next=0
|
|
2: StateProbe match=0 next=1
|
|
|
|
leave-joint
|
|
----
|
|
voters=(2) learners=(1)
|
|
1: StateProbe match=0 next=0 learner
|
|
2: StateProbe match=0 next=1
|