kvserver: sep-raft-log: integrate snapshot application #93251
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Snapshot application is a complex operation. A set of SSTables is constructed and atomically ingested. These SSTs both truncate the existing raft log (i.e. touch raft state) and replace the state machine state. Additionally, they might also atomically replicaGC additional initialized replicas (touching yet more raft and state machine state).
We lose this atomicity with the separate raft log.
https://github.com/tbg/cockroach/blob/e292a73f2af0e55aa760cce168622732c0716ff6/pkg/kv/kvserver/replicas_storage.go has some discussion of how this is handled, but we need to flesh it out and execute it.
Epic: CRDB-220
Jira issue: CRDB-22244
The text was updated successfully, but these errors were encountered: