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
kvserver: campaign when leader is demoted to learner
This patch campaigns when the leader demotes itself to a learner during
an atomic conf change, instead of waiting until it is completely removed
from the range. Relying on the old leader to commit the final conf
change while it's a learner appears unfortunate, and is not compatible
with an upcoming etcd/raft change that makes the learner step down in
this case.
This is backwards compatible with 23.1, because the same follower
replica is responsible for campaigning, and it does not matter if it
campaigns during the demotion or removal -- in particular because it
forces an immediate election via `forceCampaignLocked()` which
immediately bumps the term.
Epic: none
Release note: None
0 commit comments