[
https://issues.apache.org/jira/browse/CASSANDRA-7234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcus Eriksson updated CASSANDRA-7234:
---------------------------------------
Attachment: 0001-reference-sstable-before-populating-keycache.patch
> 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
> Labels: compaction
> Fix For: 2.0.9
>
> Attachments: 0001-reference-sstable-before-populating-keycache.patch
>
>
> 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)