Skip to content

kvserver: sep-raft-log: add reconciliation logic for SST ingestion #93244

@tbg

Description

@tbg

An ill-timed crash may lead to an AddSST command at raft log index N being visible in the LSM but the state machine not having advanced to N yet. We need to reconcile this at Store.Start time (before any raft processing happens), by applying such commands. We need to make sure that it is always possible to apply such commands standalone, i.e. we need to have the fact that this command is committed durable before we ever attempt to apply it in the first place.

https://github.com/tbg/cockroach/blob/e292a73f2af0e55aa760cce168622732c0716ff6/pkg/kv/kvserver/replicas_storage.go#L489-L504

Epic: CRDB-220

Jira issue: CRDB-22237

Metadata

Metadata

Assignees

No one assigned

    Labels

    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