mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
TestInteraction
Reviewed the diff in detail. The changes here were benign, just the extra raft cycle. Signed-off-by: Tobias Grieger <tobias.b.grieger@gmail.com>
This commit is contained in:
parent
f7b0a6ad33
commit
f7dcb9ec2a
5
raft/testdata/confchange_v1_add_single.txt
vendored
5
raft/testdata/confchange_v1_add_single.txt
vendored
@ -35,10 +35,13 @@ stabilize
|
|||||||
> 1 handling Ready
|
> 1 handling Ready
|
||||||
Ready MustSync=true:
|
Ready MustSync=true:
|
||||||
Lead:1 State:StateLeader
|
Lead:1 State:StateLeader
|
||||||
HardState Term:1 Vote:1 Commit:4
|
HardState Term:1 Vote:1 Commit:2
|
||||||
Entries:
|
Entries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChange v2
|
1/4 EntryConfChange v2
|
||||||
|
> 1 handling Ready
|
||||||
|
Ready MustSync=false:
|
||||||
|
HardState Term:1 Vote:1 Commit:4
|
||||||
CommittedEntries:
|
CommittedEntries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChange v2
|
1/4 EntryConfChange v2
|
||||||
|
17
raft/testdata/confchange_v2_add_double_auto.txt
vendored
17
raft/testdata/confchange_v2_add_double_auto.txt
vendored
@ -31,19 +31,24 @@ INFO 3 switched to configuration voters=()
|
|||||||
INFO 3 became follower at term 0
|
INFO 3 became follower at term 0
|
||||||
INFO newRaft 3 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
|
INFO newRaft 3 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
|
||||||
|
|
||||||
# n1 immediately gets to commit & apply the conf change using only itself. We see that
|
# Process n1 once, so that it can append the entry.
|
||||||
# it starts transitioning out of that joint configuration (though we will only see that
|
|
||||||
# proposal in the next ready handling loop, when it is emitted). We also see that this
|
|
||||||
# is using joint consensus, which it has to since we're carrying out two additions at
|
|
||||||
# once.
|
|
||||||
process-ready 1
|
process-ready 1
|
||||||
----
|
----
|
||||||
Ready MustSync=true:
|
Ready MustSync=true:
|
||||||
Lead:1 State:StateLeader
|
Lead:1 State:StateLeader
|
||||||
HardState Term:1 Vote:1 Commit:4
|
HardState Term:1 Vote:1 Commit:2
|
||||||
Entries:
|
Entries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2 v3
|
1/4 EntryConfChangeV2 v2 v3
|
||||||
|
|
||||||
|
# Now n1 applies the conf change. We see that it starts transitioning out of that joint
|
||||||
|
# configuration (though we will only see that proposal in the next ready handling
|
||||||
|
# loop, when it is emitted). We also see that this is using joint consensus, which
|
||||||
|
# it has to since we're carrying out two additions at once.
|
||||||
|
process-ready 1
|
||||||
|
----
|
||||||
|
Ready MustSync=false:
|
||||||
|
HardState Term:1 Vote:1 Commit:4
|
||||||
CommittedEntries:
|
CommittedEntries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2 v3
|
1/4 EntryConfChangeV2 v2 v3
|
||||||
|
@ -38,10 +38,13 @@ stabilize 1 2
|
|||||||
> 1 handling Ready
|
> 1 handling Ready
|
||||||
Ready MustSync=true:
|
Ready MustSync=true:
|
||||||
Lead:1 State:StateLeader
|
Lead:1 State:StateLeader
|
||||||
HardState Term:1 Vote:1 Commit:4
|
HardState Term:1 Vote:1 Commit:2
|
||||||
Entries:
|
Entries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2
|
1/4 EntryConfChangeV2 v2
|
||||||
|
> 1 handling Ready
|
||||||
|
Ready MustSync=false:
|
||||||
|
HardState Term:1 Vote:1 Commit:4
|
||||||
CommittedEntries:
|
CommittedEntries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2
|
1/4 EntryConfChangeV2 v2
|
||||||
|
@ -36,10 +36,13 @@ stabilize
|
|||||||
> 1 handling Ready
|
> 1 handling Ready
|
||||||
Ready MustSync=true:
|
Ready MustSync=true:
|
||||||
Lead:1 State:StateLeader
|
Lead:1 State:StateLeader
|
||||||
HardState Term:1 Vote:1 Commit:4
|
HardState Term:1 Vote:1 Commit:2
|
||||||
Entries:
|
Entries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2
|
1/4 EntryConfChangeV2 v2
|
||||||
|
> 1 handling Ready
|
||||||
|
Ready MustSync=false:
|
||||||
|
HardState Term:1 Vote:1 Commit:4
|
||||||
CommittedEntries:
|
CommittedEntries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2
|
1/4 EntryConfChangeV2 v2
|
||||||
|
@ -36,10 +36,13 @@ stabilize 1 2
|
|||||||
> 1 handling Ready
|
> 1 handling Ready
|
||||||
Ready MustSync=true:
|
Ready MustSync=true:
|
||||||
Lead:1 State:StateLeader
|
Lead:1 State:StateLeader
|
||||||
HardState Term:1 Vote:1 Commit:4
|
HardState Term:1 Vote:1 Commit:2
|
||||||
Entries:
|
Entries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2
|
1/4 EntryConfChangeV2 v2
|
||||||
|
> 1 handling Ready
|
||||||
|
Ready MustSync=false:
|
||||||
|
HardState Term:1 Vote:1 Commit:4
|
||||||
CommittedEntries:
|
CommittedEntries:
|
||||||
1/3 EntryNormal ""
|
1/3 EntryNormal ""
|
||||||
1/4 EntryConfChangeV2 v2
|
1/4 EntryConfChangeV2 v2
|
||||||
|
@ -41,7 +41,7 @@ ok
|
|||||||
|
|
||||||
status 1
|
status 1
|
||||||
----
|
----
|
||||||
1: StateReplicate match=11 next=12 inactive
|
1: StateReplicate match=11 next=12
|
||||||
2: StateReplicate match=11 next=12
|
2: StateReplicate match=11 next=12
|
||||||
3: StateProbe match=0 next=11 paused inactive
|
3: StateProbe match=0 next=11 paused inactive
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ stabilize 1
|
|||||||
|
|
||||||
status 1
|
status 1
|
||||||
----
|
----
|
||||||
1: StateReplicate match=11 next=12 inactive
|
1: StateReplicate match=11 next=12
|
||||||
2: StateReplicate match=11 next=12
|
2: StateReplicate match=11 next=12
|
||||||
3: StateSnapshot match=0 next=11 paused pendingSnap=11
|
3: StateSnapshot match=0 next=11 paused pendingSnap=11
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ stabilize 1
|
|||||||
|
|
||||||
status 1
|
status 1
|
||||||
----
|
----
|
||||||
1: StateReplicate match=11 next=12 inactive
|
1: StateReplicate match=11 next=12
|
||||||
2: StateReplicate match=11 next=12
|
2: StateReplicate match=11 next=12
|
||||||
3: StateReplicate match=11 next=12
|
3: StateReplicate match=11 next=12
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user