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

XSiteResourceTest.testPushAllCaches random failures

    XMLWordPrintable

Details

    Description

      The test doesn't seem to wait enough for the xsite state transfer to finish. When it fails, there is only one request to `/rest/v2/cache-managers/default/x-site/backups`, before the remote site receives the state:

      19:32:35,797 TRACE (REST-Test-Test-NodeA-48205-ServerIO-15-9:[]) [REST_ACCESS_LOG] /rest/v2/cache-managers/default/x-site/backups
      19:32:35,807 TRACE (jgroups-4,bridge-org.infinispan.rest.resources.Test,_Test-NodeC-47561:SFO-3:[]) [JGroupsTransport] Test-NodeC-47561 received request 628 from Test-NodeA-48205:LON-1: XSiteStatePushCommand{cacheName=CACHE_2, timeout=1200000 (10 keys)}
      19:32:35,809 TRACE (REST-Test-Test-NodeC-47561-ServerIO-21-1:[]) [InvocationContextInterceptor] Invoked with command SizeCommand{} and InvocationContext [org.infinispan.context.impl.NonTxInvocationContext@30b93450]
      19:32:35,813 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.rest.resources.XSiteResourceTest.testPushAllCaches
      java.lang.AssertionError: expected:<10> but was:<9>
      19:32:35,813 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.rest.resources.XSiteResourceTest.testPushAllCaches
      java.lang.AssertionError: expected:<10> but was:<9>
      	at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?]
      	at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.14.3.jar:?]
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.14.3.jar:?]
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245) ~[testng-6.14.3.jar:?]
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252) ~[testng-6.14.3.jar:?]
      	at org.infinispan.rest.resources.XSiteResourceTest.testPushAllCaches(XSiteResourceTest.java:330) ~[test-classes/:?]
      

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei
            dberinde@redhat.com Dan Berindei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: