Skip to content

kvserver: reads during replica removal can return empty results #64325

@erikgrinaker

Description

@erikgrinaker

Read requests submitted during replica removal may be evaluated on the removed replica, returning empty results. This was discovered when restoring a backup did not recover all of the data -- an entire range was missing. This was caused by the export request racing with a range merge and replica removal, where the export request was evaluated on the removed (empty) replica, returning an empty result and omitting the range from the backup.

Metadata

Metadata

Assignees

Labels

A-kv-replicationRelating to Raft, consensus, and coordination.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.C-technical-advisoryCaused a technical advisoryS-0-visible-logical-errorDatabase stores inconsistent data in some cases, or queries return invalid results silently.branch-release-20.1Used to mark GA and release blockers, technical advisories, and bugs for 20.1branch-release-20.2Used to mark GA and release blockers, technical advisories, and bugs for 20.2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions