[infinispan-issues] [JBoss JIRA] (ISPN-5645) JCache Processor does not update for a store-as-binary cache

Patrick Ruckstuhl (JIRA) issues at jboss.org
Wed Jul 29 05:33:02 EDT 2015


Patrick Ruckstuhl created ISPN-5645:
---------------------------------------

             Summary: JCache Processor does not update for a store-as-binary cache
                 Key: ISPN-5645
                 URL: https://issues.jboss.org/browse/ISPN-5645
             Project: Infinispan
          Issue Type: Bug
          Components: JCache
    Affects Versions: 7.2.2.Final
            Reporter: Patrick Ruckstuhl


If a cache that is configured with store-as-binary is used in jcache and a processor is invoked, the value will never be changed.

The problem seems to be that the in 
JCache.invoke()

V oldValue = skipCacheLoadCache.get(key);

is retrieved

and this is a different instance than retrieved in 

AbstractJCache.replace()

with V current = existsCheckCache.get(key);

so when 

if (isConditional && !current.equals(oldValue)) 

is called (and the value doesn't implement equal) they are never equal even though the value never changed.




This is also related to ISPN-5504



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


More information about the infinispan-issues mailing list