An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.99k
stars
886
forks
source link
election timer should be restarted after step down by term change #465
Otherwise there is a chance that right after a follower grants its vote for other, its election timer is triggered. The follower will start election again. It can easily pass prevote and increase its term then disrupt the new leader.
Otherwise there is a chance that right after a follower grants its vote for other, its election timer is triggered. The follower will start election again. It can easily pass prevote and increase its term then disrupt the new leader.