Branimir Lambov created CASSANDRA-18342:
-------------------------------------------

             Summary: Race in sstable tracking can cause sstables to never be 
compacted
                 Key: CASSANDRA-18342
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18342
             Project: Cassandra
          Issue Type: Bug
          Components: Local/Compaction
            Reporter: Branimir Lambov


The sstable tracking by the compaction strategies permits a race between an 
sstable is added and removed that can cause a removed sstable to remain in the 
tracked list (when the add notification is received after the removal).

This can cause reference leaks, because such {{SSTableReader}} s remain in the 
list forever, but if a strategy does not filter its sstable list through the 
live list (e.g. LCS in some code paths) it can also cause sstables that end up 
being selected to compact with these zombies to never compact (indicated by a 
"Could not acquire references for compacting SSTables..." message).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to