[ 
https://issues.apache.org/jira/browse/CASSANDRA-20593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17947038#comment-17947038
 ] 

Branimir Lambov commented on CASSANDRA-20593:
---------------------------------------------

Note: Chunk cache invalidation is very inefficient. This is a problem on its 
own, which can be fixed by using a file id map and invalidation by dropping the 
file id.

> The chunk cache does not retain chunks for early open sstables
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-20593
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20593
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Local/Caching
>            Reporter: Branimir Lambov
>            Priority: Normal
>         Attachments: EarlyOpenCachingTest.java
>
>
> The chunk cache is invalidated [when a {{FileHandle}} is 
> closed|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/util/FileHandle.java#L239],
>  which is called for sstables that have been opened early when they are 
> switched out.
> This means that it cannot retain data between different stages of opening 
> files early, and also for the final sstable.
> To avoid this, cache invalidation can be done when the sstable reader is 
> tidied, at the time when [the system cache is being 
> released|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/format/SSTableReader.java#L1673].



--
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