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

JMX returns wrong number of cache entries

    XMLWordPrintable

Details

    Description

      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).

      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)
      

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              vjuranek@redhat.com Vojtech Juranek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: