[infinispan-issues] [JBoss JIRA] (ISPN-8226) PutIfAbsent can succeed in scattered cache on non-null entry

Radim Vansa (JIRA) issues at jboss.org
Fri Aug 25 06:56:00 EDT 2017


Radim Vansa created ISPN-8226:
---------------------------------

             Summary: PutIfAbsent can succeed in scattered cache on non-null entry
                 Key: ISPN-8226
                 URL: https://issues.jboss.org/browse/ISPN-8226
             Project: Infinispan
          Issue Type: Bug
          Components: Core
    Affects Versions: 9.1.0.Final
            Reporter: Radim Vansa
            Assignee: Radim Vansa


When the {{putIfAbsent}} is a retry, the value/metadata in RepeatableReadEntry is reset to the first loaded version. However if this command caused a prefetch from remote node after finding {{RemoteMetadata}} locally, the first loaded version is the remote metadata and the value updated by prefetch is reset, despite the prefetched value being already inserted into DC. The command sees {{null}} as cache value and since the seen version matches to the version in DC, the write is allowed.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list