Skip to content

kvserver/loqrecovery Analyze range_committed_index field when picking winning replica #73662

@aliher1911

Description

@aliher1911

When performing loss of quorum recovery, use range_committed_index value collected from replicas to pick winning replica.

Current approach is to pick voter replica with highest storeid which is consistent but not necessarily the best choice. Highest range committed index would provide most up to date descriptor value which would be a better choice.

Previously it was not possible because we needed a node local decision. With the centralized data collection approach it is now possible.

See #72527

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions