Entry replaced with same expiration can expire immediately
----------------------------------------------------------
Key: ISPN-9514
URL:
https://issues.jboss.org/browse/ISPN-9514
Project: Infinispan
Issue Type: Bug
Components: Expiration
Affects Versions: 9.3.3.Final
Reporter: William Burns
Assignee: William Burns
Priority: Major
Fix For: 9.4.0.Final
Currently lifespan expiration removes an expired entry based on the key value and
lifespan parameter matching. Unfortunately this still leaves it open to removing an entry
that was just inserted if it was expired and it was replaced with the same value.
This is especially problematic with `RemoteCache.putIfAbsent` or other conditional
operations as they perform a get before doing the actual operation.