O'Reilly logo

Apache Cassandra Essentials by Nitin Padalia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Delete operations

In Cassandra, a delete operation does not delete the requested data immediately. Instead, it puts a marker over the deleted data. This marker is called a tombstone. A tombstone's age is defined by per-column family option gc_grace_seconds. After gc_grace_seconds has passed, Cassandra clears data marked with tombstones, and it clears all tombstones during the compaction of the column family.

Tip

If a node is down for loger than the time specified by gc_grace_seconds and is recovered, there is a chance that the deleted data will come back. To avoid such scenarios, nodes dead for such a long time should be replaced instead of being added back to the cluster.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required