Dan Berindei created ISPN-6040:
----------------------------------
Summary:
FunctionalNonTxBackupOwnerBecomingPrimaryOwnerTest.testPrimaryOwnerChangingDuringRemove
random failures
Key: ISPN-6040
URL:
https://issues.jboss.org/browse/ISPN-6040
Project: Infinispan
Issue Type: Bug
Components: Core, Test Suite - Core
Affects Versions: 8.1.0.Final
Reporter: Dan Berindei
Assignee: Galder ZamarreƱo
Priority: Blocker
Fix For: 8.2.0.Alpha1
Similar to ISPN-6039, the test failure is caused by the state transfer put happening after
the test's remove.
In this case, the command types are different, so blocking works correctly. However, when
the {{ReadWriteKeyValueCommand}} executes before the state transfer put, it doesn't
find any value, and it doesn't commit the entry. This means the key is not added to
{{CommitManager}}'s {{tracker}} map, and the state transfer put is allowed to write to
it - effectively undoing the remove.
{noformat}
java.lang.AssertionError: expected:<null> but was:<v0>
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.distribution.rehash.NonTxBackupOwnerBecomingPrimaryOwnerTest.doTest(NonTxBackupOwnerBecomingPrimaryOwnerTest.java:194)
at
org.infinispan.functional.distribution.rehash.FunctionalNonTxBackupOwnerBecomingPrimaryOwnerTest.testPrimaryOwnerChangingDuringRemove(FunctionalNonTxBackupOwnerBecomingPrimaryOwnerTest.java:103)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)