I have recently lowered gc_grace_seconds for a CQL table. I am running LeveledCompactionStrategy. Is it possible for me to force purging of old tombstones from my SSTables?
Can I force cleanup of old tombstones?
19.2k views Asked by Ztyx At
1
There are 1 answers
Related Questions in CASSANDRA
- How to perform ordering in cassandra
- Kong: Running Mashape Kong fails on Mac OS X
- Cassandra spark connector data loss
- How to insert a custom type with map<text, boolean> field using cqlsh in Cassandra?
- How to setup cassandra and spark
- Error running spark app using spark-cassandra connector
- Where are the API docs for org.apache.spark.sql.cassandra for Spark 1.3.x?
- java.sql.SQLSyntaxErrorException: name provided was not in the list of valid column labels:
- Cassandra query on 2 dates
- Cassandra WordCount Hadoop
Related Questions in DATASTAX
- Cassandra spark connector data loss
- How to setup cassandra and spark
- Not able to run datastax-agent-5.1.3
- datastax 4.7 The 'start' parameter is not allowed in c# driver with autopaging off
- DSE Cassandra Spark Error
- Isnull equivalent in SOLR
- Datastax cassandra object mapper setting consistency and if not exists
- dse cassandra solr doesnt return _uniqueKey in response
- upgrade steps from DataStax Enterprise 4.6.1 TO DataStax Enterprise 4.7 with Cassandra 2.1
- New Datastax driver for Tableau is not working
Related Questions in DATASTAX-ENTERPRISE
- How to kill a spark job if application id is known?
- Isnull equivalent in SOLR
- dse cassandra solr doesnt return _uniqueKey in response
- All masters are unresponsive ! ? Spark master is not responding with datastax architecture
- Is it possible to configure OpsCenter Backup Service differently per datacenter?
- Spark Master does not start with DSE 4.7 and OpsCenter 5.1.3
- Weird dse hive integration in DSE 4.7
- Trouble finding Spark master with DSE 4.7
- DSE 4.7 and spark-sql driver
- How to change the flush queue size of cassandra
Related Questions in TOMBSTONE
- SSTables are never deleted on disk if table gets dropped
- how does tombstones works in android-kernel
- Error dumping tombstone
- Cassandra read queries return empty results Using springframework data cassandra
- Can I force cleanup of old tombstones?
- Backstack Tombstone wp7
- Clarification about Cassandra tombstones and manual compaction
- Updating cell value to null in Cassandra and avoid tombstones
- Why doesn't Major compaction free space but garbagecollect does?
- Why don't an upsert create Tombstones in Cassandra?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
TL;DR
Your tombstones will disappear on their own through compaction bit make sure you are running repair or they may come back from the dead.
http://www.datastax.com/documentation/cassandra/2.0/cassandra/dml/dml_about_deletes_c.html
Adding some more details:
Tombstones are not immediately available for deletion until both:
1) gc_grace_seconds has expired
2) they meet the requirements configured in tombstone compaction sub-properties
I need to free up disk by expiring tombstones, how do I do this quickly?
1) Run a repair to ensure your tombstones are consistent
2) Decrease gc_grace_seconds for your table (alter table statement)
3) Configure your compaction sub properties to speed up tombstone removal:
Decrease tombstone_compaction_interval and decrease tombstone_threshold, or set unchecked_tombstone_compaction to true to ignore both conditions and collect based purely on gc grace.
Is it working?
You can see statistics about tombstones in
nodetool cfstatsand by using the sstable metatdata utility found in your tools directorysstablemetadata <sstable filenames>.