[infinispan-issues] [JBoss JIRA] (ISPN-6948) L1 not cleared in pessimistic tx cache.
Radim Vansa (JIRA)
issues at jboss.org
Mon Aug 15 08:05:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radim Vansa updated ISPN-6948:
------------------------------
Component/s: Core
> L1 not cleared in pessimistic tx cache.
> ---------------------------------------
>
> Key: ISPN-6948
> URL: https://issues.jboss.org/browse/ISPN-6948
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> 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}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list