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.
30 lines
661 B
Plaintext
30 lines
661 B
Plaintext
# Test the autoleave argument to EnterJoint. It defaults to false in the
|
|
# datadriven tests. The flag has no associated semantics in this package,
|
|
# it is simply passed through.
|
|
simple
|
|
v1
|
|
----
|
|
voters=(1)
|
|
1: StateProbe match=0 next=0
|
|
|
|
# Autoleave is reflected in the config.
|
|
enter-joint autoleave=true
|
|
v2 v3
|
|
----
|
|
voters=(1 2 3)&&(1) autoleave
|
|
1: StateProbe match=0 next=0
|
|
2: StateProbe match=0 next=1
|
|
3: StateProbe match=0 next=1
|
|
|
|
# Can't enter-joint twice, even if autoleave changes.
|
|
enter-joint autoleave=false
|
|
----
|
|
config is already joint
|
|
|
|
leave-joint
|
|
----
|
|
voters=(1 2 3)
|
|
1: StateProbe match=0 next=0
|
|
2: StateProbe match=0 next=1
|
|
3: StateProbe match=0 next=1
|