[infinispan-issues] [JBoss JIRA] (ISPN-9277) Put & Get call is not in sync
Dan Berindei (JIRA)
issues at jboss.org
Fri Jun 8 10:54:02 EDT 2018
[ https://issues.jboss.org/browse/ISPN-9277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-9277:
-------------------------------
Comment: was deleted
(was: [~parag2borah], we never really allowed defining two caches with the same name. Previously the second cache definition would silently overwrite (or possibly merge with) the 1st definition, now we signal the error.
Your second problem is that the cache is ASYNC, which means {{cache.put(key, value)}} returns *before* the value was inserted/updated in the cache. In older versions of Infinispan, the cache would update the value on the local node synchronously, before {{cache.put(key, value)}} returns, but we had to change the approach because concurrent writes would cause inconsistencies. In general I would recommend using {{cache.putAsync(key, value)}} instead of making the cache ASYNC, because it's clearer and the behaviour is very similar now.
)
> Put & Get call is not in sync
> -----------------------------
>
> Key: ISPN-9277
> URL: https://issues.jboss.org/browse/ISPN-9277
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.1.1.Final
> Reporter: paragBorah Borah
> Priority: Blocker
> Attachments: newConfig911.txt, oldConfig722.txt
>
>
> Hello,
> We have upgraded infinispan cache from 7.2.2 to 9.1.1.
> We have configuration (old config file) where we have <local-cache> & <replicated-cache> with same name as “defaultcache”. Where in latest version 9.1.1 we can’t have same name.
> Now my concern is about configuration. In previous configuration when we perform put operation & in some time get operation giving us the latest data from cache.
> But in latest version after put operation & in some time get operation is not giving the latest updated data from cache.
> Could you please help me with the configuration details which can help me to fix this issue.
> Regards
> Parag
>
> [~NadirX]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list