[
https://issues.apache.org/jira/browse/CASSANDRA-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080194#comment-13080194
]
Edward Capriolo commented on CASSANDRA-2325:
--------------------------------------------
@Jonathon,
We could do this
{noformat}
public void invalidateKeyCache()
{
keyCache.clear();
if (!keyCache.getCachePath().delete()){
logger.error("KeyCache "+columnFamily+" delete failed.");
}
}
{noformat}
But I am wondering how that effects systems like the Memcache row caching that
are not physical files. I was just assuming the other call was more future
proof. I will dig into the code a bit.
> invalidateKeyCache / invalidateRowCache should remove saved cache files from
> disk
> ---------------------------------------------------------------------------------
>
> Key: CASSANDRA-2325
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2325
> Project: Cassandra
> Issue Type: Improvement
> Affects Versions: 0.7.8, 0.8.2
> Reporter: Matthew F. Dennis
> Assignee: Edward Capriolo
> Priority: Minor
> Attachments: cassandra-2325-1.patch.txt
>
>
> the invalidate[Key|Row]Cache calls don't remove the saved caches from disk.
> It seems logical that if you are clearing the caches you don't expect them to
> be reinstantiated with the old values the next time C* starts.
> This is not a huge issue since next time the caches are saved the old values
> will be removed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira