Dan Berindei created ISPN-7162:
----------------------------------
Summary: SiteManualSwitchTest random failures
Key: ISPN-7162
URL:
https://issues.jboss.org/browse/ISPN-7162
Project: Infinispan
Issue Type: Bug
Reporter: Dan Berindei
Priority: Critical
The hotrod-client X-site tests can't run concurrently because all join the same RELAY2
bridge cluster:
{noformat}
23:00:03,696 DEBUG (Incoming-1,global,_SiteManualSwitchTest-NodeA-9028:LON:[]) [GMS]
_SiteManualSwitchTest-NodeA-9028:LON: installing view
[_SiteManualSwitchTest-NodeA-9028:LON|2] (3) [_SiteManualSwitchTest-NodeA-9028:LON,
_SiteDownFailoverTest-NodeA-45170:LON, _SiteManualSwitchTest-NodeC-31279:NYC]
{noformat}
This means some writes end up backed up to the wrong site, leading to failures like this:
{noformat}
23:00:23,966 ERROR (testng-SiteManualSwitchTest) [TestSuiteProgress] Test failed:
org.infinispan.client.hotrod.xsite.SiteManualSwitchTest.testManualClusterSwitch
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:170) at
org.testng.AssertJUnit.assertEquals(AssertJUnit.java:177) at
org.infinispan.client.hotrod.xsite.AbstractHotRodSiteFailoverTest.assertSiteHit(AbstractHotRodSiteFailoverTest.java:147)
at
org.infinispan.client.hotrod.xsite.SiteManualSwitchTest.assertSingleSiteHit(SiteManualSwitchTest.java:47)
at
org.infinispan.client.hotrod.xsite.SiteManualSwitchTest.testManualClusterSwitch(SiteManualSwitchTest.java:33)
{noformat}
{noformat}
00:35:31,372 ERROR (testng-SiteManualSwitchTest:[]) [TestSuiteProgress] Test failed:
org.infinispan.client.hotrod.xsite.SiteManualSwitchTest.testManualClusterSwitch
java.lang.AssertionError: expected:<0> but was:<1>
at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252) ~[testng-6.8.8.jar:?]
at
org.infinispan.client.hotrod.xsite.AbstractHotRodSiteFailoverTest.lambda$null$47(AbstractHotRodSiteFailoverTest.java:126)
~[test-classes/:?]
at
org.infinispan.client.hotrod.xsite.AbstractHotRodSiteFailoverTest$$Lambda$651/559455232.accept(Unknown
Source) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_45]
at
org.infinispan.client.hotrod.xsite.AbstractHotRodSiteFailoverTest.lambda$assertNoHits$48(AbstractHotRodSiteFailoverTest.java:123)
~[test-classes/:?]
at
org.infinispan.client.hotrod.xsite.AbstractHotRodSiteFailoverTest$$Lambda$650/2126831304.accept(Unknown
Source) ~[?:?]
at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_45]
at
org.infinispan.client.hotrod.xsite.AbstractHotRodSiteFailoverTest.assertNoHits(AbstractHotRodSiteFailoverTest.java:122)
~[test-classes/:?]
at
org.infinispan.client.hotrod.xsite.SiteManualSwitchTest.testManualClusterSwitch(SiteManualSwitchTest.java:29)
~[test-classes/:?]
{noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)