Tan xinyu created IOTDB-620:
-------------------------------
Summary: [Distributed] Add the ability to persist and maintain
voteFor for the raft node
Key: IOTDB-620
URL: https://issues.apache.org/jira/browse/IOTDB-620
Project: Apache IoTDB
Issue Type: Improvement
Components: Core/Cluster
Reporter: Tan xinyu
Assignee: Tan xinyu
This is the quote from raft's paper.
{quote}Raft servers must persist enough information to stable storage to
survive server restarts safely. In particular, each server persists its current
term and vote; this is necessary to prevent the server from voting twice in the
same term or replacing log entries from a newer leader with those from a
deposed leader. Each server also persists new log entries before they are
counted towards the entries’ commitment; this prevents committed entries from
being lost or “uncommitted” when servers restart.
{quote}
Therefore, the persistence of voteFor is important to ensure the security of
the system.
It will be the work of this issue to implement the voteFor persistence and fix
some election logic.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)