]
Radim Vansa commented on ISPN-8226:
-----------------------------------
Actually this bug applies only when ISPN-8078 is in place; I'll merge the fix with
ISPN-8078 PR instead.
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.