Details
-
Bug
-
Resolution: Done
-
Critical
-
8.2.0.Final
Description
The prepare command from testRemoveUnexistingEntry can execute during the next test method, testReplace, causing random failures.
16:32:39,725 TRACE (testng-AsyncReplExtendedStatisticTest:[___defaultcache]) [InvocationContextInterceptor] Invoked with command PrepareCommand {modifications=[RemoveCommand{key=key_1, value=null, flags=[], valueMatcher=MATCH_ALWAYS}], onePhaseCommit=true, retried=false, gtx=GlobalTx:NodeA-13326:391, cacheName='___defaultcache', topologyId=-1} and InvocationContext [org.infinispan.context.impl.LocalTxInvocationContext@242fb621] 16:32:39,757 INFO (testng-AsyncReplExtendedStatisticTest:[]) [UnitTestTestNGListener] Test testRemoveUnexistingEntry(org.infinispan.stats.simple.AsyncReplExtendedStatisticTest) succeeded. 16:32:39,758 INFO (testng-AsyncReplExtendedStatisticTest:[]) [UnitTestTestNGListener] Starting test testReplace(org.infinispan.stats.simple.AsyncReplExtendedStatisticTest) 16:32:39,759 TRACE (testng-AsyncReplExtendedStatisticTest:[___defaultcache]) [ReadCommittedEntry] Updating entry (key=key_1 removed=false valid=true changed=true created=true value=value_1 metadata=EmbeddedExpirableMetadata{lifespan=-1, maxIdle=-1, version=null}, providedMetadata=null) 16:32:39,771 TRACE (Incoming-1,NodeB-13809:[___defaultcache]) [InvocationContextInterceptor] Invoked with command PrepareCommand {modifications=[RemoveCommand{key=key_1, value=null, flags=[], valueMatcher=MATCH_ALWAYS}], onePhaseCommit=true, retried=false, gtx=GlobalTx:NodeA-13326:391, cacheName='___defaultcache', topologyId=2} and InvocationContext [org.infinispan.context.impl.RemoteTxInvocationContext@7c97b3fd] 16:32:39,778 TRACE (Incoming-1,NodeB-13809:[___defaultcache]) [ReadCommittedEntry] Updating entry (key=key_1 removed=true valid=false changed=true created=false value=value_1 metadata=EmbeddedMetadata{version=null}, providedMetadata=null) 16:32:39,786 TRACE (Incoming-1,NodeA-13326:[___defaultcache]) [ReadCommittedEntry] Updating entry (key=key_1 removed=false valid=true changed=true created=true value=value_1 metadata=EmbeddedExpirableMetadata{lifespan=-1, maxIdle=-1, version=null}, providedMetadata=null) 16:32:49,853 ERROR (testng-AsyncReplExtendedStatisticTest:[]) [UnitTestTestNGListener] Test testReplace(org.infinispan.stats.simple.AsyncReplExtendedStatisticTest) failed. java.lang.AssertionError: at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?] at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24) ~[testng-6.8.8.jar:?] at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:170) ~[infinispan-core-9.0.0-SNAPSHOT-tests.jar:9.0.0-SNAPSHOT] at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:152) ~[infinispan-core-9.0.0-SNAPSHOT-tests.jar:9.0.0-SNAPSHOT] at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:128) ~[infinispan-core-9.0.0-SNAPSHOT-tests.jar:9.0.0-SNAPSHOT] at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:462) ~[infinispan-core-9.0.0-SNAPSHOT-tests.jar:9.0.0-SNAPSHOT] at org.infinispan.test.MultipleCacheManagersTest.assertEventuallyEquals(MultipleCacheManagersTest.java:586) ~[infinispan-core-9.0.0-SNAPSHOT-tests.jar:9.0.0-SNAPSHOT] at org.infinispan.stats.BaseClusteredExtendedStatisticTest.assertCacheValue(BaseClusteredExtendedStatisticTest.java:307) ~[test-classes/:?] at org.infinispan.stats.BaseClusteredExtendedStatisticTest.testReplace(BaseClusteredExtendedStatisticTest.java:208) ~[test-classes/:?]