]
Dan Berindei updated ISPN-7067:
-------------------------------
Status: Open (was: New)
Cache.evict() sometimes performs a DataContainer.remove()
---------------------------------------------------------
Key: ISPN-7067
URL:
https://issues.jboss.org/browse/ISPN-7067
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.Alpha4, 8.2.4.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.0.0.Beta1
{{Cache.evict()}} generally uses {{DataContainer.evict()}} to move an entry from the data
container to the store.
However, when {{EntryWrappingInterceptor}} doesn't find the entry in the data
container, {{EvictCommand.perform()}} doesn't set the {{EVICTED}} flag on the context
entry, and then {{ReadCommittedEntry.commit()}} calls {{DataContainer.remove()}} instead
of {{DataContainer.evict()}}.
If another command activated the entry between the entry wrapping and the commit, this
will remove the entry altogether instead of moving it to the store.