Getting memory was freed assertion during major compaction of SSTables.
yes java.lang.AssertionError: Memory was freed
1) initiate a compaction with nodetool h localhost compaction command (feature start)
Memory was freed assertion was raised when doing a compaction.
After takling a look at the logs, we find that a race condition is allowing SSTable to participate in multiple concurrent compactions. The the frist compaction finishes, it frees the compression metadata. When the second compaction operation checks the meatadata, we cause the assertion error.
race conditon which allows a single sstable to participate in multiple concurrent compaction.
make sure we don’t allow compaction of a single SSTable in multiple compactor concurrently.
no more exception