mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-26 09:07:06 +00:00
A partitioned cluster may have members attempt elections while partitioned off from a healthy cluster. These members degrade from server to follower and can hold elections in rapid succession, but never win. Fencing should shut them down regardless within a certain amount of time, but they may already hold elections and record them as incremented TERMs. When rejoining the quorum with a higher TERM they tend to usurp a healthy leader, but, there is no reason to. We can postpone this by carefully looking at heartbeats and what is in the quorum blocks. These followers will not have been elected with a TERM higher than the one we may hear heartbeats from. Signed-off-by: Auke Kok <auke.kok@versity.com>