add hints for TestLeaderSyncFollowerLog2AB (#302)

Co-authored-by: NingLin-P <linningde25@gmail.com>
This commit is contained in:
Zhenhua Yang 2021-11-23 19:07:16 +08:00 committed by GitHub
parent de31fb1e51
commit aefad168f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@ You can run `make project2ac` to test the implementation and run `make project2a
> - Add any state you need to `raft.Raft`, `raft.RaftLog`, `raft.RawNode` and message on `eraftpb.proto`
> - The tests assume that the first time start raft should have term 0
> - The tests assume that the newly elected leader should append a noop entry on its term
> - The tests assume that once the leader advances its commit index, it will broadcast the commit index by `MessageType_MsgAppend` messages.
> - The tests doesnt set term for the local messages, `MessageType_MsgHup`, `MessageType_MsgBeat` and `MessageType_MsgPropose`.
> - The log entries append are quite different between leader and non-leader, there are different sources, checking and handling, be careful with that.
> - Dont forget the election timeout should be different between peers.