зеркало из https://github.com/microsoft/CCF.git
Check quorum scenario (#5911)
This commit is contained in:
Родитель
da30d983c8
Коммит
e008c5f31b
|
@ -1,21 +1,42 @@
|
|||
nodes,0,1,2,3
|
||||
connect,0,1
|
||||
connect,0,2
|
||||
connect,0,3
|
||||
connect,1,2
|
||||
connect,1,3
|
||||
connect,2,3
|
||||
start_node,0
|
||||
assert_is_primary,0
|
||||
emit_signature,2
|
||||
|
||||
assert_is_primary,0
|
||||
assert_commit_idx,0,2
|
||||
|
||||
trust_node,2,1
|
||||
emit_signature,2
|
||||
|
||||
# Node 0 starts first, and wins the first election
|
||||
periodic_one,0,110
|
||||
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
|
||||
assert_commit_idx,0,6
|
||||
|
||||
trust_node,2,3
|
||||
emit_signature,2
|
||||
|
||||
dispatch_all
|
||||
periodic_all,10
|
||||
dispatch_all
|
||||
assert_commit_idx,0,8
|
||||
|
||||
dispatch_all
|
||||
periodic_all,10
|
||||
dispatch_all
|
||||
assert_state_sync
|
||||
|
||||
# An initial entry is written and successfully replicated
|
||||
replicate,1,helloworld
|
||||
emit_signature,1
|
||||
replicate,2,helloworld
|
||||
emit_signature,2
|
||||
|
||||
periodic_all,10
|
||||
dispatch_all
|
Загрузка…
Ссылка в новой задаче