cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7234) Post-compaction cache preheating can result in FileNotFoundExceptions when tables are dropped
Date Wed, 14 May 2014 20:37:14 GMT
Tyler Hobbs created CASSANDRA-7234:
--------------------------------------

             Summary: Post-compaction cache preheating can result in FileNotFoundExceptions
when tables are dropped
                 Key: CASSANDRA-7234
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7234
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Tyler Hobbs
            Priority: Minor
             Fix For: 2.0.9


In CompactionTask.java, after a compaction finishes, we do this:

{code}
        replaceCompactedSSTables(toCompact, sstables);
        // TODO: this doesn't belong here, it should be part of the reader to load when the
tracker is wired up
        for (SSTableReader sstable : sstables)
            sstable.preheat(cachedKeyMap.get(sstable.descriptor));
{code}

The problem is that if the table was dropped, {{replaceCompactedSSTables}} will release its
references on the new {{sstables}}, resulting in them being closed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message