Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7162

SiteManualSwitchTest random failures

    XMLWordPrintable

Details

    Description

      The hotrod-client X-site tests can't run concurrently because all join the same RELAY2 bridge cluster:

      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]
      

      This means some writes end up backed up to the wrong site, leading to failures like this:

      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)
      
      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/:?]
      

      Attachments

        Issue Links

          Activity

            People

              gzamarre Galder ZamarreƱo
              dberinde@redhat.com Dan Berindei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: