Dan Berindei created ISPN-12290:
-----------------------------------
Summary: Anchored keys: cluster listener does not receive removed value
Key: ISPN-12290
URL:
https://issues.redhat.com/browse/ISPN-12290
Project: Infinispan
Issue Type: Bug
Affects Versions: 12.0.0.Dev03
Reporter: Dan Berindei
The previous value is usually not available in cluster listeners, only in regular
listeners, in the pre=true invocation. The exception in {{CacheEntryRemovedEvent}}, where
{{getOldValue()}} returns the removed value.
Because the old value is not available in the invocation context (see ISPN-5665),
listeners read the previous value directly from the data container, and this works most of
the time (except with stores, during state transfer etc.)
In anchored keys caches, the primary owner reads the previous value from the anchor owner
so that we can perform conditional operations, but the listeners cannot see this previous
value and instead they see the {{null}} from the data container.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)