-
Notifications
You must be signed in to change notification settings - Fork 4.1k
loqrecovery: when recovering replica, proactively remove discarded ones #75230
Copy link
Copy link
Open
Labels
A-kv-replicationRelating to Raft, consensus, and coordination.Relating to Raft, consensus, and coordination.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV TeamKV Team
Description
Currently we pick survivor replica based on recovery criteria and bump its number and make it upreplicate upon restart. Old stale replicas could hang around for a long time after that.
We'd rather remove replicas proactively when performing recovery as we already know which replicas are stale.
That could be done as a part of plan apply stage on appropriate nodes.
Jira issue: CRDB-12520
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-kv-replicationRelating to Raft, consensus, and coordination.Relating to Raft, consensus, and coordination.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV TeamKV Team