A delete in Cassandra is a write. It appends a marker called a tombstone, the marker survives until a compaction runs and gc_grace_seconds has elapsed, and until then every read that crosses it pays for it. Two numbers govern how much pain you are allowed to accumulate, and both ship in cassandra.yaml:
tombstone_warn_threshold: 1000
tombstone_failure_threshold: 100000
Cross the first in a single read and you get a warning. Cross the second and that query is aborted. Below, both are triggered on a live 5.0.9 node.
Table of Contents
Four ways to create a tombstone, three of them by accident
Three writes into one partition — an ordinary insert, a delete, and an insert whose value is null — then nodetool flush and sstabledump:
{
"type" : "row", "clustering" : [ 1 ],
"liveness_info" : { "tstamp" : "2026-08-10T21:35:53.594086Z" },
"cells" : [ { "name" : "v", "value" : "alive" } ]
},
{
"type" : "row", "clustering" : [ 2 ],
"deletion_info" : { "marked_deleted" : "2026-08-10T21:35:53.594884Z", "local_delete_time" : "2026-08-10T21:35:53Z" },
"cells" : [ ]
},
{
"type" : "row", "clustering" : [ 3 ],
"liveness_info" : { "tstamp" : "2026-08-10T21:35:53.595479Z" },
"cells" : [ { "name" : "v", "deletion_info" : { "local_delete_time" : "2026-08-10T21:35:53Z" } } ]
}
Clustering 2 is the DELETE — a row tombstone. Clustering 3 is INSERT ... VALUES ('p1', 3, null), and the cell carries its own deletion_info: a cell tombstone. Updating the row with null values is not an alternative to DELETE; it is a delete with extra steps.
Omit the column instead of writing null and there is no tombstone at all — the dump for INSERT INTO no_null (part, ck) VALUES ('p1', 1) contains no deletion_info anywhere. With prepared statements, leaving a bind variable unset has the same effect, while binding it to null writes the tombstone. That distinction is where most accidental tombstones in ORM-generated CQL come from.
The fourth source is TTL. Expiry does not skip the tombstone, it schedules it:
INSERT INTO hw_v3.ttl_demo (part, ck, v) VALUES ('p', 1, 'short-lived') USING TTL 2;
-- five seconds later, flush and dump:
"liveness_info" : { "tstamp" : "...", "ttl" : 2, "expires_at" : "2026-08-10T22:11:49Z", "expired" : true }
The row is gone from SELECT results and still on disk, marked expired, waiting for the same compaction-plus-gc_grace cycle as a manual delete.
Batching does not help
BEGIN BATCH
DELETE FROM hw_v3.batched WHERE part='p' AND ck=1;
DELETE FROM hw_v3.batched WHERE part='p' AND ck=2;
DELETE FROM hw_v3.batched WHERE part='p' AND ck=3;
APPLY BATCH;
$ sstabledump ... | grep -c deletion_info
3
Three statements in, three tombstones out. A batch is an atomicity construct, not a compression one. What does collapse many tombstones into one is deleting at a coarser granularity: one partition delete, or one range delete over a clustering slice, is a single marker covering everything inside it.
The warning, and the failure
3,000 rows written into one partition and then deleted one by one. Reading that partition:
cqlsh> SELECT * FROM hw_v3.tomb_warn WHERE part='p1';
(0 rows)
Warnings :
Read 0 live rows and 3000 tombstone cells for query SELECT * FROM hw_v3.tomb_warn WHERE part = 'p1'
LIMIT 100 ALLOW FILTERING; token -9032840179063523349 (see tombstone_warn_threshold)
Zero rows returned, 3,000 tombstones walked to establish that. Tombstones are not skipped on the read path; they are merged like any other cell. The comment shipped directly above the threshold in cassandra.yaml explains why the count is of scanned tombstones rather than stored ones:
# When executing a scan, within or across a partition, we need to keep the
# tombstones seen in memory so we can return them to the coordinator, which
# will use them to make sure other replicas also know about the deleted rows.
# With workloads that generate a lot of tombstones, this can cause performance
# problems and even exaust the server heap.
Now 110,000 tombstones in one partition:
cqlsh> SELECT * FROM hw_v3.tomb_fail WHERE part='pf';
ReadFailure: Error from server: code=1300 [Replica(s) failed to execute read] message="Operation failed
- received 0 responses and 1 failures: READ_TOO_MANY_TOMBSTONES from /127.0.0.1:7100"
info={'consistency': 'ONE', 'required_responses': 1, 'received_responses': 0, 'failures': 1, ...}
And in system.log:
ERROR [ReadStage-15] StorageProxy.java:2248 - Scanned over 100001 tombstones during query
'SELECT * FROM hw_v3.tomb_fail WHERE part = 'pf' LIMIT 100 ALLOW FILTERING' ... ; query aborted
Note what this is not: the node is healthy, nothing crashed, and every other query still works. One partition became permanently unreadable at this consistency level until compaction removes the markers. Raising tombstone_failure_threshold to make the error go away converts a fast failure into a slow one. Both thresholds can be tripped again in about four minutes: with Cassandra 5.x, its cqlsh, nodetool and sstabledump tools, Java 11 or 17 and python3 installed, tombstones-guide.sh starts a single node on non-default ports, repeats the tombstone, warning, failure and gc_grace_seconds examples on this page, and never touches an installation you already run.
gc_grace_seconds, and why compaction on demand does not work
gc_grace_seconds defaults to 864000 — ten days. Insert two rows, delete one, flush, and run the command usually recommended for this:
$ nodetool compact hw_v3 gcg
$ sstabledump ... /nb-3-big-Data.db
{ "type" : "row", "clustering" : [ 1 ],
"deletion_info" : { "marked_deleted" : "...", "local_delete_time" : "..." },
"cells" : [ ] },
The tombstone is still there. Compaction is not permitted to drop it yet. Set the grace period to zero and compact again and it disappears, leaving the live row untouched:
$ cqlsh -e "ALTER TABLE hw_v3.gcg WITH gc_grace_seconds = 0;"
$ nodetool compact hw_v3 gcg
$ sstabledump ... /nb-4-big-Data.db
{ "type" : "row", "clustering" : [ 2 ], "cells" : [ { "name" : "v", "value" : "y" } ] }
Do not copy that second command onto a real cluster. The grace period exists so that a node which was down when the delete happened learns about it from repair before the evidence is destroyed. Purge early and the surviving replica hands the deleted row back — a resurrection, silent, and permanent. The rule is: gc_grace_seconds must be longer than your actual repair interval, and if you shorten one you must shorten the other first.
What to do instead
Model so the deletes are coarse or absent. Time-series data with a TTL and TimeWindowCompaction lets whole SSTables expire and be dropped rather than merged, so the tombstones never enter a read path. Where you must delete, delete a whole partition or a clustering range rather than N rows. Never write null to mean “leave this alone”. And check the cost before it becomes an outage — nodetool tablestats reports it per table:
$ nodetool tablestats hw_v3.tomb_warn
Average tombstones per slice (last five minutes): 3311.0
Maximum tombstones per slice (last five minutes): 3311
Droppable tombstone ratio: 0.00000
That is the 3,000-tombstone partition from earlier, reporting itself. A maximum-tombstones-per-slice figure creeping toward 1,000 is the signal, and it arrives long before the failure threshold does.