LSM tombstone
An LSM tombstone is a versioned deletion marker that suppresses older values for a key without immediately erasing their stored bytes.
A marker stays necessary while an older sorted table may still hold a value it hides, and compaction drops it only when no deeper level has a file whose key range overlaps that key. Removing the marker alone can expose obsolete data. [1] Point-in-time reads can also require retaining older versions. [2]
In one replicated store, a replica that missed a deletion can reintroduce an old value after other replicas purge the marker. Grace-period expiry permits removal only when compaction conditions also allow it. [5]
To persist a delete, the marker must take part in one compaction per level, so purge time depends on the rate of unique inserts and on tree height. Workloads that mostly rewrite hot keys in upper levels can keep markers indefinitely. With a deadline at 50% of a run, a delete-aware policy purged all markers in time, while a saturation-driven policy left about 40,000, roughly 40% of those inserted, in older files. Space amplification fell by about 48%. [6]
A backup can outlive every active deletion marker. In Hesela's constructed one-cell model, all replicas receive the deletion before eligible purge, yet a later old-value import becomes visible after complete reconciliation. A retained marker suppresses it after reconciliation; an isolated historical restore can intentionally require it. This is not a Cassandra run or a measured failure rate. The repair, archive and cell-ordering scopes are separate. [7] [8] [9] [10]
Relations
- related
- Log-structured merge-tree, Sorted string table, Range tombstone, Delete persistence latency, Anti-entropy repair, RocksDB SingleDelete, Buffered upsert, Bloom filter, Anvil
Advantages
- A delete costs one small sequential write instead of locating and rewriting every stored copy of the key. [6]
Limitations
- Deleting by an attribute other than the sort key, such as a timestamp, needs a scan and rewrite of the whole tree in a conventional layout. [6]
- Bounding purge time adds compaction work, measured at 4% to 25% more write amplification across the evaluated settings. [6]
Citations
- LevelDB project. Implementation: sorted tables and compaction.
- RocksDB project. Snapshot: sequence numbers, point-in-time reads and lifetime.
- Apache Cassandra 5.0.0: Tombstones
- Sarkar, Papon, Staratzis and Athanassoulis. Lethe: A Tunable Delete-Aware LSM Engine. SIGMOD 2020, arXiv 2006.04777, sections 3 to 5.
- Apache Cassandra 5.0.0. Repair: current replica scope.
- Apache Cassandra 5.0.0. Backups: retained SSTable copies.
- Apache Cassandra 5.0.0. Cells: regular-cell timestamp reconciliation.
- Hesela: archive-import teaching model, source receipts and reproduction
Further reading
Sources & caveats
- lethe read 2026-10-23, sections 1, 3.1, 4 and 5.1, for the per-level propagation argument, adversarial workloads and the measured figures.
- leveldb read 2026-10-23 for the rule that drops markers only when no deeper overlapping file exists.
- tombstones covers the replica resurrection case and grace-period expiry.
- Two companion analyses on delete persistence and replica repair are listed but not used in prose.
- 2026-11-03: source synthesis and fixed single-cell model for future-import scope; no native Cassandra experiment or independent peer review.