mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft/rafttest: fix stabilize handler
It was bailing out too early.
This commit is contained in:
parent
d047fe84ee
commit
c2d9514370
@ -73,9 +73,9 @@ func (env *InteractionEnv) Stabilize(idxs ...int) error {
|
|||||||
withIndent(func() { env.DeliverMsgs(msgs) })
|
withIndent(func() { env.DeliverMsgs(msgs) })
|
||||||
done = false
|
done = false
|
||||||
}
|
}
|
||||||
if done {
|
}
|
||||||
return nil
|
if done {
|
||||||
}
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
raft/testdata/snapshot_succeed_via_app_resp.txt
vendored
17
raft/testdata/snapshot_succeed_via_app_resp.txt
vendored
@ -136,6 +136,21 @@ status 1
|
|||||||
2: StateReplicate match=11 next=12
|
2: StateReplicate match=11 next=12
|
||||||
3: StateReplicate match=11 next=12
|
3: StateReplicate match=11 next=12
|
||||||
|
|
||||||
|
# Let things settle.
|
||||||
stabilize
|
stabilize
|
||||||
----
|
----
|
||||||
ok
|
> delivering messages
|
||||||
|
1->2 MsgHeartbeat Term:1 Log:0/0 Commit:11
|
||||||
|
> delivering messages
|
||||||
|
1->3 MsgApp Term:1 Log:1/11 Commit:11
|
||||||
|
> 2 handling Ready
|
||||||
|
Ready MustSync=false:
|
||||||
|
Messages:
|
||||||
|
2->1 MsgHeartbeatResp Term:1 Log:0/0
|
||||||
|
> 3 handling Ready
|
||||||
|
Ready MustSync=false:
|
||||||
|
Messages:
|
||||||
|
3->1 MsgAppResp Term:1 Log:0/11
|
||||||
|
> delivering messages
|
||||||
|
2->1 MsgHeartbeatResp Term:1 Log:0/0
|
||||||
|
3->1 MsgAppResp Term:1 Log:0/11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user