I'm using cassandra 2.2.1
and noticed that after nodetool flush
commitlog files are not deleted (actually, may be some are, I didn't see, but commitlog dir is not empty).
What is happening during nodetool flush
or just regular flush? Are all commitlog files supposed to be deleted during this process?
Is data from commitlog used only during node repair or also during flush?
Commitlog files are pre-allocated and reused rather than deleted. This improves performance. See more information here.
The commitlog is used if a node goes down before a memtable has been flushed to an SSTable. This is done by replaying the commitlog to recreate the memtable. When you do a flush, then the space in the commitlog can be reclaimed and reused.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With