-
Bug
-
Resolution: Done
-
Blocker
-
8.0.0.Final
-
None
It appears the expiration listener is invoked multiple times for the same key, and the first one has a null value:
10:39:38,844 DEBUG (remote-thread-NodeA-p15343-t6:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false} 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t2:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=MagicKey#null{1297a9e5@NodeA-18241/8}-expiring, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false} 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t3:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false} 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t4:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false} 10:39:39,343 ERROR (testng-ClusterListenerDistTxInitialStateTest:[]) [UnitTestTestNGListener] Test testAllExpire(org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTxInitialStateTest) failed. java.lang.AssertionError: expected:<MagicKey#null{1297a9e5@NodeA-18241/8}-expiring> but was:<null> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?] at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.8.8.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.8.8.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88) ~[testng-6.8.8.jar:?] at org.infinispan.notifications.cachelistener.cluster.AbstractClusterListenerTest.testAllExpire(AbstractClusterListenerTest.java:662) ~[test-classes/:?]