You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Marcus Eriksson (JIRA)" <ji...@apache.org> on 2014/06/09 15:01:03 UTC
[jira] [Assigned] (CASSANDRA-7234) Post-compaction cache preheating
can result in FileNotFoundExceptions when tables are dropped
[ https://issues.apache.org/jira/browse/CASSANDRA-7234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcus Eriksson reassigned CASSANDRA-7234:
------------------------------------------
Assignee: Marcus Eriksson
> 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
> Assignee: Marcus Eriksson
> 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)