Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #144] node abnormal status detection and recovery #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

Signed-off-by: zhangyang21 <zhangyang21@xiaomi.com>
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