[infinispan-issues] [JBoss JIRA] (ISPN-4813) JMX returns wrong number of cache entries
Vojtech Juranek (JIRA)
issues at jboss.org
Thu Oct 23 07:41:35 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014560#comment-13014560 ]
Vojtech Juranek commented on ISPN-4813:
---------------------------------------
IIRC I put [AbstractRemoteCacheIT#assertCacheEmpty|https://github.com/infinispan/infinispan/blob/master/server/integration/testsuite/src/test/java/org/infinispan/server/test/client/hotrod/AbstractRemoteCacheIT.java#L113] at the beginning of AbstractRemoteCacheIT#[testPutAsync|https://github.com/infinispan/infinispan/blob/master/server/integration/testsuite/src/test/java/org/infinispan/server/test/client/hotrod/AbstractRemoteCacheIT.java#L566] to make sure that cache is clear, but latter on, when I put a break point into [DefaultDataContainer#clear|https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/container/DefaultDataContainer.java#L205] it wan't called. Not sure if this is the right data container, but IIRC via JMX this method was called.
> JMX returns wrong number of cache entries
> -----------------------------------------
>
> Key: ISPN-4813
> URL: https://issues.jboss.org/browse/ISPN-4813
> Project: Infinispan
> Issue Type: Bug
> Components: JMX, reporting and management, Remote Protocols, Server
> Reporter: Vojtech Juranek
> Assignee: Galder Zamarreño
> Labels: testsuite_stability
> Fix For: 7.0.0.Final
>
>
> Number of cache entries ({{numberOfEntries}}) provided by JMX is wrong. {{HotRodRemoteCacheIT#testPutAsyc}} fails with assert error (see bellow), because JMX returns wrong number of entries in the cache. When debugging the test, number of entries in the cache is correct (100 - obrained e.g. by {{cache.getBulk().size()}}), but JMX return wrong number (100). Even on cleared cache JMX return that it contains 3 entries. When the {{clear}} operation is called via JMX, JMX show correct number (0).
> {noformat}
> java.lang.AssertionError: expected:<100> but was:<103>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.junit.Assert.assertEquals(Assert.java:542)
> at org.infinispan.server.test.client.hotrod.AbstractRemoteCacheIT.testPutAsync(AbstractRemoteCacheIT.java:574)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the infinispan-issues
mailing list