You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NRG (2.11): Fix term handling in candidate state and use higher term from vote request (#5671)
A candidate could incorrectly revert to an older term without resetting
if an old AE arrived with a term that is at least newer than the pterm
but not necessarily newer than the term.
Additionally, we also weren't handling the case that the rest of the
cluster should assume the higher term number from the vote requests once
an isolated candidate node rejoins the cluster.
This PR also rewrites `TestNRGCandidateStepsDownAfterAE` and replaces it
with `TestNRGAssumeHighTermAfterCandidateIsolation` as the old test was
checking for flawed behaviour: it was relying on the term being able to
go backwards after a period of isolation, which is not correct. Instead
we should prove that the rest of the cluster assumes the higher term
from the isolated node.
Co-authored-by: Reuben Ninan <[email protected]>
Signed-off-by: Neil Twigg <[email protected]>
0 commit comments