You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Venkata Harikrishna Nukala (Jira)" <ji...@apache.org> on 2021/01/12 13:27:00 UTC

[jira] [Commented] (CASSANDRA-16380) KeyCache load performance issue during startup

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

Venkata Harikrishna Nukala commented on CASSANDRA-16380:
--------------------------------------------------------

I am preparing a patch for this issue.

> KeyCache load performance issue during startup
> ----------------------------------------------
>
>                 Key: CASSANDRA-16380
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16380
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Venkata Harikrishna Nukala
>            Assignee: Venkata Harikrishna Nukala
>            Priority: Normal
>
> Cassandra startup blocked for loading key cache.
> From org.apache.cassandra.service.CassandraDaemon#setup method:
> {code:java}
> try
> {
>  loadRowAndKeyCacheAsync().get();
> }
> catch (Throwable t)
> {
>  JVMStabilityInspector.inspectThrowable(t);
>  logger.warn("Error loading key or row cache", t);
> }{code}
> Key cache {{deserialize}} method is fetching all CANONICAL SSTables and picks one from it for each entry: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/service/CacheService.java#L447. When the key cache is relatively big and has lots of SSTables (in thousands) then loading key cache take lots of time.
> Performance of key cache loading can be improved and have timeout for it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org