Andrzej Bialecki created SOLR-14239:
---------------------------------------

             Summary: Fix the behavior of CaffeineCache.computeIfAbsent
                 Key: SOLR-14239
                 URL: https://issues.apache.org/jira/browse/SOLR-14239
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.4.1
            Reporter: Andrzej Bialecki
            Assignee: Andrzej Bialecki
             Fix For: 8.5


Spin-off from SOLR-13817, spotted by Andy Webb.

The back-port of {{CaffeineCache}} to branch_8x is missing a conditional 
statement in {{computeIfAbsent}} which breaks the contract of this method, i.e. 
if the loading function returns null the cache mapping should remain unchanged 
and a null value should be returned.

This issue also modifies comments in the default {{solrconfig.xml}} to indicate 
that the old cache implementations existing in branch_8x are deprecated in 
favor of CaffeineCache.



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

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

Reply via email to