Skip to content

kvserver: C2C handling of DeleteRange aka MVCC range tombstones #70433

@erikgrinaker

Description

@erikgrinaker

Once MVCC range deletion tombstones (#70412) are emitted across rangefeeds (#82449), they need to be handled by cluster-to-cluster (C2C) streaming. Initially, these will only be used for schema GC (e.g. dropping tables) and rolling back a cancelled import. When that happens, the DeleteRange operation must be replayed on the target cluster using an MVCC range tombstone.

NB: MVCC range tombstones will also be included in AddSSTable events emitted across rangefeeds, and these must be handled via specialized range key functionality on the SST iterator, e.g. HasPointAndRange() and RangeKeys(). See SimpleMVCCIterator documentation for details.

#CRDB-7188
Jira issue: CRDB-10074
Epic CRDB-7188

Metadata

Metadata

Assignees

Labels

A-cdcChange Data CaptureA-tenant-streamingIncluding cluster streamingC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-cdcsync-me-8

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions