[infinispan-issues] [JBoss JIRA] (ISPN-5150) Eager near cache tests randomly failing

Galder Zamarreño (JIRA) issues at jboss.org
Thu Jan 15 08:23:49 EST 2015


    [ https://issues.jboss.org/browse/ISPN-5150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032748#comment-13032748 ] 

Galder Zamarreño commented on ISPN-5150:
----------------------------------------

I've replicated locally with a loop of executing tests in this package, but it's not enough to know how the value disappeared. One option would be that the near cache stopped and it was cleared but there's no such thing happening. I'll add more logging and retry.

> Eager near cache tests randomly failing
> ---------------------------------------
>
>                 Key: ISPN-5150
>                 URL: https://issues.jboss.org/browse/ISPN-5150
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Remote Protocols
>    Affects Versions: 7.1.0.Beta1
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>              Labels: testsuite_stability
>             Fix For: 7.1.0.CR1
>
>         Attachments: LazyNearCacheTest_pr_galderz_t_5130_20150115.log
>
>
> 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
> {code}
> 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)
> {code}
> In this case, the tests afterwards fail with:
> {code}
> 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)
> {code}
> We also see a similar failure in ClusterEagerNearCacheTest
> http://ci.infinispan.org/viewLog.html?buildId=22966&tab=buildResultsDiv&buildTypeId=Infinispan_MasterHotspotJdk7Fast
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)



More information about the infinispan-issues mailing list