Skip to content

Conversation

Git-Yang
Copy link
Contributor

Fix #144

  • Records the current term of each node when the master node sends a heartbeat to the slave node.
  • Check whether the term of each node is normal when the master node sends a heartbeat and keeps the master node state normally.
  • Send a status check heartbeat to the slave node when the term of the slave node is greater than that of the master node.
  • When the slave node receives the status detection heartbeat, check whether it is CANDIDATE and its term is greater than that of the master node, and recovery to FOLLOWER when this scenario is met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node abnormal status detection and recovery
1 participant