-
Bug
-
Resolution: Done
-
Major
-
10.1.0.Final
-
DataGrid Sprint #38, DataGrid Sprint #39
I have only seen it once, with trace logging enabled.
Because the test doesn't wait for the rebalance to finish before starting the transaction, the transaction's topology might be smaller than the current topology, and TxDistributionInterceptor will send the prepare+commit to all the owners "just in case".
00:55:24,535 TRACE (testng-Test:[]) [TransactionTable] Created a new local transaction: LocalXaTransaction{xid=null} LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, lockedKeys=[], backupKeyLocks=[], topologyId=4, stateTransferFlag=null} org.infinispan.transaction.xa.LocalXaTransaction@23b3 00:55:24,539 TRACE (transport-thread-Test-NodeA-p22422-t4:[]) [CacheNotifierImpl] Invoking listener: org.infinispan.transaction.xa.XaTransactionTable@7d35d8bc passing event EventImpl{type=TOPOLOGY_CHANGED, pre=false, cache=Cache 'Test'@Test-NodeA-2639, readConsistentHashAtStart=PartitionerConsistentHash:ReplicatedConsistentHash{ns = 256, owners = (2)[Test-NodeA-2639: 128, Test-NodeB-29221: 128]}, writeConsistentHashAtStart=PartitionerConsistentHash:ReplicatedConsistentHash{ns = 256, owners = (2)[Test-NodeA-2639: 128, Test-NodeB-29221: 128]}, readConsistentHashAtEnd=PartitionerConsistentHash:ReplicatedConsistentHash{ns = 256, owners = (2)[Test-NodeA-2639: 128, Test-NodeB-29221: 128]}, writeConsistentHashAtEnd=PartitionerConsistentHash:ReplicatedConsistentHash{ns = 256, owners = (2)[Test-NodeA-2639: 128, Test-NodeB-29221: 128]}, unionConsistentHash=null, newTopologyId=5} 00:55:24,540 TRACE (testng-Test:[]) [VersionedDistributionInterceptor] Should invoke remotely? true. hasModifications=false, hasRemoteLocksAcquired=false 00:55:24,557 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.tx.TransactionsSpanningReplicatedCachesTest.testReadOnlyTransaction java.lang.AssertionError: expected:<6> but was:<4> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:170) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:177) ~[testng-6.14.3.jar:?] at org.infinispan.tx.TransactionsSpanningReplicatedCachesTest.testReadOnlyTransaction(TransactionsSpanningReplicatedCachesTest.java:71) ~[test-classes/:?]