delete-persistence-latency · shipping

Delete persistence latency

In delete-aware LSM research, delete persistence latency is the delay from inserting a tombstone to removing the entries it invalidates through compaction.

This is a reclamation metric, not the time to durably log a delete or erase every physical copy.

Section 3.2.4 models O(T^(L-1) x P x B / I) for leveling and O(T^L x P x B / I) for tiering: T is size ratio, L disk levels, P buffer pages, B entries per page and I unique entries inserted per second. These are asymptotic expressions, not measured deadlines. [1]

FADE allocates a deletion threshold D_th across levels, with longer TTLs for larger levels. For three TTL terms in ratio 1:10:100 summing to 86,400 s, rounding gives 778, 7,784 and 77,838 s. This reconstructed allocation follows the sum constraint, not a literal transcription of the printed d0 formula. [1]

At D_th = 50% of the experiment's run-time, Figure 6(E) reports about 40,000 markers, or 40% of all inserted tombstones, in RocksDB files older than D_th. Lethe met the threshold in that experiment. This file-age summary is not a retained event-by-event latency dataset. [1]

Cassandra 5.0.0 instead uses a default 864,000 s grace period before purge eligibility. Expiry alone is insufficient: compaction must include relevant older data, and only_purge_repaired_tombstones adds a repair condition when enabled. This retention floor is not a cleanup deadline. [5]

Lethe+ has no TTL-based memtable flush: its persistence statement covers tombstones already flushed to disk. Tombstone age still starts at insertion into the memory buffer, not at flush. TTL checks run after buffer flushes, so the stated bound can become D_th + epsilon; the margin depends on the flush interval. An idle, unflushed memtable needs a separate progress policy before an end-to-end deadline can be asserted. [6]

Relations

related
LSM tombstone, Range tombstone, Log-structured merge-tree, Secondary range delete

Advantages

  • Compacting invalidated entries earlier improved point lookups by up to 17% in the authors' evaluation. [1]

Limitations

  • Tree reclamation alone does not remove WAL records; Lethe describes a separate WAL purge/copy routine. Backups, replicas, snapshots and remapped flash need their own retention controls. [1]

Citations

  1. Sarkar et al. Lethe: A Tunable Delete-Aware LSM Engine. SIGMOD 2020, arXiv:2006.04777v4, sections 3.2.4, 4.1 and 5. (accessed 2026-10-29)
  2. Apache Cassandra 5.0.0. Tombstones: grace period and purge eligibility. (accessed 2026-10-29)
  3. Sarkar et al. Enabling Timely and Persistent Deletion in LSM-Engines. ACM TODS 48(3), Article 8 (2023), sections 4.1.2, 4.1.3 and 4.1.5. (accessed 2026-10-29)

Further reading

  1. RocksDB project. Basic Operations: synchronous and non-sync writes. (accessed 2026-10-12)
  2. LSM tombstones: deleted is not yet reclaimed (accessed 2026-10-12)
  3. Luo and Carey. LSM-based Storage Techniques: A Survey. arXiv 1812.07527v3, 2019. (accessed 2026-10-16)
  4. Sarkar et al. Author-hosted full text of the 2023 Lethe+ article, sections 4.1.2-4.1.5. (accessed 2026-10-29)
Sources & caveats
  • SIGMOD 2020 section 5 uses synthetic 1 GB data, 1 KB entries, a 1 MB buffer, ratio 10, 2% to 10% deletes, WAL disabled, compactions prioritized over writes and lookups after population. It does not establish synchronous-delete crash durability.
  • The abstract's 4% to 25% write-amplification increase is a summary across the study, not a measurement paired specifically with Figure 6(E)'s 50% threshold.
  • The abstract reports 1.17 to 1.4 times higher read throughput; the listed advantage follows section 5.1 and Figure 6(D), not an independent measurement.
  • Section 4.1.2 prints a d0 denominator inconsistent with its L-term sum. The illustrative allocation normalizes weights 1, 10 and 100, then rounds to whole seconds.
  • The pinned Cassandra documentation supplies the default grace period and optional repaired-data condition; neither is a recommendation to lower retention.
  • Lethe+ sections 4.1.2, 4.1.3 and 4.1.5 exclude TTL-based memtable flushing, age tombstones from buffer insertion, and qualify checks by flush cadence. The idle-buffer consequence is an engineering inference; no idle-system benchmark or post-flush clock reset is claimed.
  • Lethe 2020 section 4.1.5 describes WAL retention separately; section 5 disables WAL for the experiment. A described maintenance mechanism is not evidence of WAL-enabled crash testing.

JSON: /data/terms/delete-persistence-latency.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Delete persistence latency. Hesela. 2026-10-29. https://hesela.dev/terms/delete-persistence-latency/