[infinispan-issues] [JBoss JIRA] (ISPN-5529) ClusterListenerReplTest.testPrimaryOwnerGoesDownAfterBackupRaisesEvent random failures

Dan Berindei (JIRA) issues at jboss.org
Mon Jun 8 08:04:02 EDT 2015


Dan Berindei created ISPN-5529:
----------------------------------

             Summary: ClusterListenerReplTest.testPrimaryOwnerGoesDownAfterBackupRaisesEvent random failures
                 Key: ISPN-5529
                 URL: https://issues.jboss.org/browse/ISPN-5529
             Project: Infinispan
          Issue Type: Bug
          Components: Core, Test Suite - Core
    Affects Versions: 8.0.0.Alpha1, 7.2.2.Final
            Reporter: Dan Berindei
            Assignee: Dan Berindei
            Priority: Blocker
             Fix For: 8.0.0.Alpha2


Because the cache is replicated, both cache 0 or cache 2 are backup owners of the tested key, and both of them can become primary owners after cache 1 is killed. If cache 0 becomes the primary owner, {{cache.put(key, FIRST_VALUE)}} may return {{null}} and/or the cluster listener may receive only one event:

{noformat}
java.lang.AssertionError: expected:<null> but was:<first-value>
    at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:101)
    at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:108)
    at org.infinispan.notifications.cachelistener.cluster.ClusterListenerReplTest.testPrimaryOwnerGoesDownAfterBackupRaisesEvent(ClusterListenerReplTest.java:119)
{noformat}

{noformat}
12:23:53,438 ERROR (testng-ClusterListenerReplTest:) [UnitTestTestNGListener] Test testPrimaryOwnerGoesDownAfterBackupRaisesEvent(org.infinispan.notifications.cachelistener.cluster.ClusterListenerReplTest) failed.java.lang.AssertionError: expected:<1> but was:<2>
	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:245)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
	at org.infinispan.notifications.cachelistener.cluster.ClusterListenerReplTest.testPrimaryOwnerGoesDownAfterBackupRaisesEvent(ClusterListenerReplTest.java:121)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list