]
Radim Vansa updated ISPN-6948:
------------------------------
Affects Version/s: 9.0.0.Alpha4
L1 not cleared in pessimistic tx cache.
---------------------------------------
Key: ISPN-6948
URL:
https://issues.jboss.org/browse/ISPN-6948
Project: Infinispan
Issue Type: Bug
Affects Versions: 9.0.0.Alpha4
Reporter: Radim Vansa
When an entry is written on non-owner, it is L1-cached, but if another non-owner removes
the entry, the node that wrote it is not notified and keeps the value. This happens
because {{ctx.getAffectedKeys()}} is not updated properly on owner != originator and
{{L1LastChanceInterceptor.shouldFlushL1}} returns false.
Reproducer:
{code}
MagicKey key = new MagicKey(caches.get(0), caches.get(1));
Cache cache2 = caches.get(2);
Cache cache3 = caches.get(3);
cache2.put(key, "value");
assertEquals(cache3.remove(key), "value");
assertNull(cache2.get(key));
{code}