Correct. It's also worth noting that if you delete log files and restart C*
the CompactionLogger will then find the earliest available file number
starting from 0. You'll have to explore what you can use to configure
proper log rotation as the CompactionLogger doesn't use the logging system
to writ
Hi Erik,
thank you for the link, very instructive.
To summarise my understanding of your mail, the code and my experiments:
- as long as the compaction logger is running it will write into the same
“compaction.log" file
- if a new logger gets started (for example through restart of the Cassandr
As far as I'm aware, the compaction logs don't get rotated. It looks like
it just increments the sequence number by 1.
You can have a look at the logic here --
https://github.com/apache/cassandra/blob/cassandra-3.11.6/src/java/org/apache/cassandra/db/compaction/CompactionLogger.java#L303-L318.
Che