-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
raft follower should add the judgment of leader lease valid when process askvote to prevent split brain #5379
Comments
Would you name one split brain case? What you implemented above is called |
A(leader, lease 30s) ,B ,(follower) C (follower), C restart(isBlindFollower, quick election), send askvote reques to A(lost), send askvote request to B,B votes for C,now A is leader, C is leader; |
A(leader, lease 30s) ,B ,(follower) C (follower), A rocksdb manual compaction, write stall, sendheart only step2(not send log), A and C network isolation,C can't receive heartbeat, send askvote request to B,B votes for C,now A is leader, C is leader; |
The judgment of role and pre_vote can be removed |
Same as #5352, close it. |
Current code that process voting election requests may cause split brain (ep: network issue),I think it would be better to add some judgment
The text was updated successfully, but these errors were encountered: