kv: forgetting leader should respect fortification #124496
Labels
A-kv-replication
Relating to Raft, consensus, and coordination.
A-leader-leases
Related to the introduction of leader leases
C-cleanup
Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.
T-kv
KV Team
maybeForgetLeaderOnVoteRequestLocked
is called when receiving a (Pre)Vote request. If the current leader is not live (according to liveness) or not in our range descriptor, we forget it and become a leaderless follower.This method was added in #105132. As the TODO in its comment describes, the mechanism is only relevant with epoch leases and 23.1 compatibility. It can and should be removed when we address #123847.
Jira issue: CRDB-38929
Epic CRDB-37522
The text was updated successfully, but these errors were encountered: