etcd/raft
Ben Darnell 2e1c36cdd9 raft: introduce MsgHeartbeatResp.
Now that heartbeats are distinct from MsgApp{,Resp}, the retries
currently performed in stepLeader's MsgAppResp section are only
performed on an actual MsgAppResp (or a new MsgProp). This means
that it may take a long time to recover from a dropped MsgAppResp
in a quiet cluster.

This commit adds a dedicated heartbeat response message. This message
does not convey the follower's current log position because the
MsgHeartbeat does not include the leaders term and index. Upon receipt
of a heartbeat response, the leader may retry the latest MsgApp if it
believes the follower to be behind.
2015-01-14 17:34:10 -05:00
..
raftpb raft: introduce MsgHeartbeatResp. 2015-01-14 17:34:10 -05:00
diff_test.go raft: introduce log storage interface. 2014-11-10 17:40:39 -05:00
doc.go raft: add doc for storage 2014-12-22 12:33:14 -08:00
example_test.go raft: introduce log storage interface. 2014-11-10 17:40:39 -05:00
log.go raft: add link to the paper raft_paper_tests.go refers to 2014-12-29 14:17:48 -05:00
log_test.go Merge pull request #1858 from vlajos/typofixes-vlajos-20141204 2014-12-04 14:52:27 -08:00
log_unstable.go raft: panic on bad slice 2014-12-02 17:48:03 -08:00
log_unstable_test.go raft: add TestUnstableTruncateAndAppend 2014-12-03 16:37:19 -08:00
node.go Merge pull request #1992 from xiang90/rm_leader 2015-01-02 14:15:12 -08:00
node_bench_test.go raft: fix node bench 2014-11-26 23:07:35 -08:00
node_test.go raft: drop nodes in softState 2014-12-09 11:43:52 -08:00
raft.go raft: introduce MsgHeartbeatResp. 2015-01-14 17:34:10 -05:00
raft_paper_test.go raft: Use <= instead of < for heartbeat ticks. 2015-01-14 15:27:32 -05:00
raft_test.go raft: introduce MsgHeartbeatResp. 2015-01-14 17:34:10 -05:00
storage.go raft: remove panic when we see a proposal with no leader. 2014-12-10 17:34:40 -05:00
util.go raft: introduce MsgHeartbeatResp. 2015-01-14 17:34:10 -05:00