lsm-tombstone · shipping · also deletion marker, point tombstone

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

  1. LevelDB project. Implementation: sorted tables and compaction. (accessed 2026-10-23)
  2. RocksDB project. Snapshot: sequence numbers, point-in-time reads and lifetime. (accessed 2026-10-12)
  3. Apache Cassandra 5.0.0: Tombstones (accessed 2026-10-13)
  4. Sarkar, Papon, Staratzis and Athanassoulis. Lethe: A Tunable Delete-Aware LSM Engine. SIGMOD 2020, arXiv 2006.04777, sections 3 to 5. (accessed 2026-10-23)
  5. Apache Cassandra 5.0.0. Repair: current replica scope. (accessed 2026-11-03)
  6. Apache Cassandra 5.0.0. Backups: retained SSTable copies. (accessed 2026-11-03)
  7. Apache Cassandra 5.0.0. Cells: regular-cell timestamp reconciliation. (accessed 2026-11-03)
  8. Hesela: archive-import teaching model, source receipts and reproduction (accessed 2026-11-03)

Further reading

  1. LSM tombstones: deleted is not yet reclaimed (accessed 2026-10-12)
  2. Replica repair: what has actually converged? (accessed 2026-10-13)
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.

JSON: /data/terms/lsm-tombstone.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. LSM tombstone. Hesela. 2026-11-15. https://hesela.dev/terms/lsm-tombstone/