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

Yonik Seeley commented on SOLR-10141:
-------------------------------------

Thanks Ben, I confirmed that this fixes the removalListener issue.

As far as the cache size issue, I've found that calling cache.cleanUp() after a 
put() seems to keep things under control.  Is there any other method I should 
look at?
{code}
            if (cache.estimatedSize() > maxEntries) {
              // BlockCache *really* relies on having enough removalListeners 
called to get back down to the configured maxEntries (otherwise the
              // underlying direct memory will be exhausted and the 
BlockCache.store will have to fail).
              cache.cleanUp();
            }
{code}


> Caffeine cache causes BlockCache corruption 
> --------------------------------------------
>
>                 Key: SOLR-10141
>                 URL: https://issues.apache.org/jira/browse/SOLR-10141
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Yonik Seeley
>         Attachments: SOLR-10141.patch, Solr10141Test.java
>
>
> After fixing the race conditions in the BlockCache itself (SOLR-10121), the 
> concurrency test passes with the previous implementation using 
> ConcurrentLinkedHashMap and fail with Caffeine.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to