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

Eager near cache tests randomly failing

    XMLWordPrintable

    Details

      Description

      expectNearGetValue() failing randomly in eager near cache tests randomly, e..g

      http://ci.infinispan.org/viewLog.html?buildId=22924&buildTypeId=bt9&tab=buildLog#_focus=167014

      java.lang.AssertionError: expected:<v1> but was:<null>
          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:88)
          at org.infinispan.client.hotrod.near.AssertsNearCache.assertGetKeyValue(AssertsNearCache.java:168)
          at org.infinispan.client.hotrod.near.AssertsNearCache.expectNearGetValue(AssertsNearCache.java:85)
          at org.infinispan.client.hotrod.near.EagerNearCacheTest.testGetNearCache(EagerNearCacheTest.java:37)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      In this case, the tests afterwards fail with:

      java.lang.AssertionError: [org.infinispan.client.hotrod.near.MockNearCacheService$MockPutIfAbsentEvent{key=1, value=VersionedValueImpl{version=1, value=v1}}] expected:<0> but was:<1>
          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.infinispan.client.hotrod.near.AssertsNearCache.expectNoNearEvents(AssertsNearCache.java:71)
          at org.infinispan.client.hotrod.near.EagerNearCacheTest.testGetUpdatesNearCache(EagerNearCacheTest.java:59)
      

      We also see a similar failure in ClusterEagerNearCacheTest

      http://ci.infinispan.org/viewLog.html?buildId=22966&tab=buildResultsDiv&buildTypeId=Infinispan_MasterHotspotJdk7Fast

      java.lang.AssertionError: expected:<v1> but was:<null>
          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:88)
          at org.infinispan.client.hotrod.near.AssertsNearCache.assertGetKeyValue(AssertsNearCache.java:168)
          at org.infinispan.client.hotrod.near.AssertsNearCache.expectNearGetValue(AssertsNearCache.java:85)
          at org.infinispan.client.hotrod.near.ClusterEagerNearCacheTest.expectNearCacheUpdates(ClusterEagerNearCacheTest.java:65)
          at org.infinispan.client.hotrod.near.ClusterEagerNearCacheTest.testNearCacheUpdatesSeenByAllClients(ClusterEagerNearCacheTest.java:58)
      

        Attachments

          Activity

            People

            Assignee:
            galder.zamarreno Galder ZamarreƱo
            Reporter:
            galder.zamarreno Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: