I have gone through nodetool garbagecollect documentation, it is not mentioned how this command removes shadowed tombstone data from multiple and overlapping sstables.
How nodetool garbagecollect will remove the shadowed tombstone data from the sstables
144 Views Asked by Rohit Thakur At
1
There are 1 best solutions below
Related Questions in CASSANDRA
- how to create a chess board with Queen in the central position and all its moves in assembler code
- Passing arguments to ENTRYPOINT causes the container to start and run indefinitely
- Apache Cassandra Node Driver Connection
- Simulate Cassandra DB timeout
- How to update Cassandra Lucene index with a new column? rebuild or update index?
- Cassandra JDBC connection string for logstash
- Cassandra OversizedMessageException
- dsbulk unload is failing after ran couple of hours with OOM issue
- Cassandra: "Model keyspace not set" and "Connection name doesn't exist in the registry" Errors
- Unable to cqlsh to a cassandra docker container remotely
- Forward pagination with object mapper in java asyn
- Allow filter in cassandra query
- How to fix bytes unrepaired in cassandra
- Can't install Cassandra using RPM packages for RHEL 9
- Why can't get a connection to Cassandra running on Docker from a Spring Boot instace using spring-boot-starter-data-cassandra on first boot?
Related Questions in NODETOOL
- Cassandra nodetool shows negative load
- Cassandra Nodes have no space to perform compaction (garbagecollect), can we safely delete SSTables and repair?
- Apache Cassandra, how to estimate amount of work for repair
- How can I estimate the Cassandra repair progress?
- Why does space grow after nodetool compact?
- How does nodetool garbagecollect work on multiple data folders?
- How nodetool garbagecollect will remove the shadowed tombstone data from the sstables
- Is Cassandra 4.1 not compatible with Ubuntu 20.04?
- Why is the load in nodetool status output much less than utilised disk space?
- Cassandra Commitlog taking more space on disk
- Can someone explain in simple terms Cassandra nodetool commands like compact and cleanup?
- Apache Cassandra : Does running nodetool repair with the full option on one node sufficient, or must it be run on every single node?
- Some Cassandra nodes show DN - gossip information is not unanimous
- Cassandra Nodetool URISyntaxException: 'Malformed IPv6 address at index 7'
- What is system.size_estimates in cassandra and plausible reasons behind high disk consumption
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)
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?
Behind the scenes,
nodetool garbagecollectruns a single-SSTable compaction. Which means that it's not running on multiple SSTable files. Essentially, the compaction process just runs on one SSTable file at a time, removing any eligible tombstones, and rewriting the file.In re-reading through that ticket's comments, it sounds like that scenario is indeed covered.
I don't think that's an entirely correct statement. From my understanding:
Edit 20230306
So I asked Branimir (the developer who wrote CASSANDRA-7019) to take a look at this discussion. He mentioned that the SSTables are processed by the lower timestamps first, so I've adjusted my points above to reflect this. He also offered the following notes to help clarify the process:
Additional sstables are used in two ways:
older sstables to see if a tombstone can be dropped (this is done for all compactions, not just garbagecollect.
newer sstables to see if anything deletes data in the current one (this is garbagecollect-specific).
The order is as follows:
SStable1, having a lower min timestamp, is processed first. The single-sstable compaction should find, by (2), the tombstone in SStable2 and drop the covered data.
SStable2 is processed then. Because we already processed SStable1, there should be no data found in (1) when the tombstone is processed and the tombstone can be dropped.
If we do normal compactions, there is no (2), the data remains and (1) finds it when processing SStable2, i.e. neither the data nor tombstone can be dropped.
Note: (2) can be tuned on also by setting
provide_overlapping_tombstones: roworcellin the compaction options. It may slow down compaction considerably (esp. with STCS), so it's to be used with caution.Independently, any tombstone that is still within
gc_gracewon't be dropped regardless if any data is found. Still, ifgarbagecollectmanaged to remove the data, a later normal compaction (after the grace expires) should be able to drop it.Another note: (1) only uses the bloom filter to check if data is covered by a tombstone; i.e. if anything in the partition remains live, no tombstone can be dropped.