CCF/tests/raft_scenarios/suffix_collision.1

94 строки
1.4 KiB
Groff

start_node,0
assert_detail,0,leadership_state,Leader
emit_signature,2
assert_detail,0,leadership_state,Leader
assert_commit_idx,0,2
trust_node,2,1
emit_signature,2
dispatch_all
periodic_all,10
dispatch_all
assert_commit_idx,0,4
trust_node,2,2
emit_signature,2
dispatch_all
periodic_all,10
dispatch_all
periodic_all,10
dispatch_all
assert_commit_idx,0,6
assert_state_sync
assert_detail,0,leadership_state,Leader
assert_detail,1,leadership_state,Follower
assert_detail,2,leadership_state,Follower
replicate,2,hello world
emit_signature,2
periodic_all,10
dispatch_all
replicate,2,saluton mondo
emit_signature,2
periodic_all,10
dispatch_all
periodic_all,10
dispatch_all
state_all
# Node 0 is partitioned, and replicates another item
disconnect,0,1
disconnect,0,2
replicate,2,drop me 1
emit_signature,2
periodic_all,10
dispatch_all
state_all
# Node 1 calls an election, and wins
periodic_one,1,110
dispatch_all
periodic_all,10
dispatch_all #< This AppendEntries starts at a point that Node 1 would accept, but is dropped
state_all
# Node 1 replicates a new entry, resulting in the same seqno as Node 0
replicate,3,keep me 1
emit_signature,3
periodic_all,10
dispatch_all
replicate,3,keep me 2
emit_signature,3
periodic_all,10
dispatch_all
state_all
# Network heals
connect,0,1
connect,0,2
# Node 0 is brought up-to-date
periodic_all,10
dispatch_all
periodic_all,10
dispatch_all
periodic_all,10
dispatch_all
state_all
assert_state_sync