Replies: 2 comments 5 replies
-
It's part of the task to get rid of pre-vote: #15 Raft, or other consensus protocol has its own time defined internally. In paxos it is Without heartbeat log(the way standard raft does), when handling a vote request, except
With heartbeat log(the way openraft does), when handling a vote request, it only needs to examine one value: the raft time: In other words, a consensus protocol does not have to, and should not depend on an external clock. |
Beta Was this translation helpful? Give feedback.
-
The blank log heartbeat can not protect the leadership from being seized by a candidate if it has not yet replicated the latest logs to a quorum. Fall back to the original heartbeat solution in: |
Beta Was this translation helpful? Give feedback.
-
While working on our little application using openraft, I noticed that openraft if storing
Blank
log entries for each heartbeat sent around the cluster. From reading the raft paper, i assumed that the heartbeat was an emptyAppendEntriesRequest
and thus no changes would be made to the log.What is the reason for actually storing, replicating and committing such a
Blank
log entry instead of implementing an emptyAppendEntriesRequest
with no changes to the log, that only does the heartbeating?Beta Was this translation helpful? Give feedback.
All reactions