Stefan Miklosovic created CASSANDRA-21557:
---------------------------------------------

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


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