Xiang Li 88767d913d raft: leader waits for the reply of previous message when follower is not in good path.
It is reasonable for the leader to wait for the reply before sending out the next
msgApp or msgSnap for the follower in bad path. Or the leader will send out useless
messages if the previous message is rejected or the previous message is a snapshot.
Especially for the snapshot case, the leader will be 100% to send out duplicate message
including the snapshot, which is a huge waste.

This commit implement a timeout based wait mechanism. The timeout for normal msgApp is a
heartbeatTimeout and the timeout for snapshot is electionTimeout(snapshot is larger). We
can implement a piggyback mechanism(application notifies the msg lost) in the future
if necessary.
2014-12-18 15:01:50 -08:00
..
2014-12-04 08:29:31 -08:00
2014-11-05 15:04:14 -08:00
2014-12-02 17:48:03 -08:00
2014-12-10 13:41:04 -08:00
2014-11-26 23:07:35 -08:00
2014-12-09 11:43:52 -08:00
2014-12-04 08:29:31 -08:00