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

VersionedDistStateTransferTest.testStateTransfer random failures

XMLWordPrintable

      The test was using MultipleCacheManagersTest.waitForClusterToForm() after killing a member, but sometimes we get this exception because one of the member hasn't updated its view right away:

      16:38:13,013 ERROR (testng-VersionedDistStateTransferTest:) [UnitTestTestNGListener] Test testStateTransfer(org.infinispan.container.versioning.VersionedDistStateTransferTest) failed.java.lang.IllegalStateException: Cache
      at address NodeE-23064 had 5 members; expecting 4. Members were (NodeA-26412, NodeB-21974, NodeC-26057, NodeD-43882, NodeE-23064)
      	at org.infinispan.test.TestingUtil.isCacheViewComplete(TestingUtil.java:461)
      	at org.infinispan.test.TestingUtil.areCacheViewsComplete(TestingUtil.java:409)
      	at org.infinispan.test.TestingUtil.areCacheViewsComplete(TestingUtil.java:401)
      	at org.infinispan.test.TestingUtil.blockUntilViewsReceived(TestingUtil.java:238)
      	at org.infinispan.test.TestingUtil.blockUntilViewsReceived(TestingUtil.java:284)
      	at org.infinispan.test.TestingUtil.blockUntilViewsReceived(TestingUtil.java:911)
      	at org.infinispan.test.MultipleCacheManagersTest.waitForClusterToForm(MultipleCacheManagersTest.java:226)
      	at org.infinispan.test.MultipleCacheManagersTest.waitForClusterToForm(MultipleCacheManagersTest.java:233)
      	at org.infinispan.container.versioning.VersionedDistStateTransferTest.testStateTransfer(VersionedDistStateTransferTest.java:96)
      

      The solution is to use just TestingUtil.waitForRehashToComplete() when killing a node.

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

                Created:
                Updated:
                Resolved: