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

Stefan Miklosovic commented on CASSANDRA-21557:
-----------------------------------------------

https://pre-ci.cassandra.apache.org/job/cassandra/658/#showFailuresLink

> Caffeine caches in CompressionDictionaryCache and ZstdDictionaryCompressor 
> should specify an executor explicitly 
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21557
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21557
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Feature/Compression
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 6.x
>
>
> We are not setting executor on these caches which means that Caffeine will 
> run stuff like {{removalListener}} on its default executor which is 
> ForkJoinPool.commonPool() which contends with everything else. There is a 
> pattern in Cassandra that each cache sets its own executor so we should do 
> the same. 
> We should use, most probably, ImmediateExecutor.INSTANCE
> https://github.com/ben-manes/caffeine/blob/v3.1.8/caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java#L337



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to