[
https://issues.apache.org/jira/browse/CASSANDRA-20593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17947038#comment-17947038
]
Branimir Lambov edited comment on CASSANDRA-20593 at 4/24/25 12:55 PM:
-----------------------------------------------------------------------
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. [This patch|https://github.com/datastax/cassandra/commit/8ad0a5e6]
includes a possible implementation of this idea.
was (Author: blambov):
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: [email protected]
For additional commands, e-mail: [email protected]