]
Pedro Ruivo updated ISPN-4565:
------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request:
ReplTotalOrderVersionedStateTransferTest.testStateTransfer random
failures
--------------------------------------------------------------------------
Key: ISPN-4565
URL:
https://issues.jboss.org/browse/ISPN-4565
Project: Infinispan
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Core, State Transfer, Test Suite - Core
Affects Versions: 7.0.0.Alpha5
Reporter: Dan Berindei
Assignee: Pedro Ruivo
Priority: Blocker
Labels: testsuite_stability
Fix For: 7.0.0.Beta1
A NullPointerException appears while processing the 2nd tx:
{noformat}
04:27:12,078 DEBUG
(remote-thread-ReplTotalOrderVersionedStateTransferTest-NodeB-p12450-t4:)
[TotalOrderInterceptor] Exception while rollback transaction
ReplTotalOrderVersionedStateTransferTest-NodeC-12055:56786
java.lang.NullPointerException
at
org.infinispan.transaction.impl.WriteSkewHelper.performTotalOrderWriteSkewCheckAndReturnNewVersions(WriteSkewHelper.java:76)
at
org.infinispan.interceptors.locking.ClusteringDependentLogic$AbstractClusteringDependentLogic.totalOrderCreateNewVersionsAndCheckForWriteSkews(ClusteringDependentLogic.java:133)
at
org.infinispan.interceptors.locking.ClusteringDependentLogic$AbstractClusteringDependentLogic.createNewVersionsAndCheckForWriteSkews(ClusteringDependentLogic.java:93)
at
org.infinispan.interceptors.totalorder.TotalOrderVersionedEntryWrappingInterceptor.visitPrepareCommand(TotalOrderVersionedEntryWrappingInterceptor.java:62)
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
at
org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:36)
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
at
org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:124)
at
org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:111)
at org.infinispan.interceptors.TxInterceptor.visitCommitCommand(TxInterceptor.java:184)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:32)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
at
org.infinispan.interceptors.totalorder.TotalOrderInterceptor.visitSecondPhaseCommand(TotalOrderInterceptor.java:148)
at
org.infinispan.interceptors.totalorder.TotalOrderInterceptor.visitCommitCommand(TotalOrderInterceptor.java:125)
{noformat}
(The error message is misleading, this is a commit and not a rollback.)
The 1st tx still fails with a WriteSkewException, but then the test fails because the 2nd
tx didn't update the value:
{noformat}
04:27:12,286 ERROR (testng-ReplTotalOrderVersionedStateTransferTest:)
[UnitTestTestNGListener] Test
testStateTransfer(org.infinispan.tx.totalorder.statetransfer.ReplTotalOrderVersionedStateTransferTest)
failed.
java.lang.AssertionError: expected:<new world> but was:<world>
at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88)
at
org.infinispan.container.versioning.VersionedReplStateTransferTest.testStateTransfer(VersionedReplStateTransferTest.java:89)
{noformat}
Full log here:
http://ci.infinispan.org/viewLog.html?buildId=9816&buildTypeId=Infini...