Skip to content

loqrecovery: when recovering replica, proactively remove discarded ones #75230

@aliher1911

Description

@aliher1911

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-kv-replicationRelating to Raft, consensus, and coordination.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV Team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions