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

Stats throw UnsupportedOperationException with EXCEPTION eviction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 13.0.11.Final, 14.0.0.Final
    • 13.0.10.Final, 14.0.0.Final
    • None
    • None

      Cache config says
       <memory max-size="512MB" when-full="EXCEPTION" storage="OFF_HEAP"/>
      When accessing the console, get

      2022-09-09 17:05:56,402 ERROR (non-blocking-thread--p2-t2) [org.infinispan.rest.RestRequestHandler] ISPN012005: An error occurred while responding to the client java.lang.UnsupportedOperationException
              at org.infinispan.container.DataContainer.evictionSize(DataContainer.java:214)
              at org.infinispan.interceptors.impl.CacheMgmtInterceptor.getDataMemoryUsed(CacheMgmtInterceptor.java:781)
              at org.infinispan.stats.impl.StatsImpl.<init>(StatsImpl.java:109)
              at org.infinispan.stats.impl.StatsImpl.create(StatsImpl.java:72)
              at org.infinispan.cache.impl.CacheImpl.getStats(CacheImpl.java:1281)
              at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.getStats(AbstractDelegatingAdvancedCache.java:275)
              at org.infinispan.stats.impl.CacheContainerStatsImpl.getEnabledStats(CacheContainerStatsImpl.java:684)
              at org.infinispan.stats.impl.CacheContainerStatsImpl.getNumberOfEntries(CacheContainerStatsImpl.java:388)
              at org.infinispan.stats.impl.CacheContainerStatsImpl.toJson(CacheContainerStatsImpl.java:697)
              at org.infinispan.rest.resources.ContainerResource.getStats(ContainerResource.java:217)
              at org.infinispan.security.Security.doAs(Security.java:117)
              at org.infinispan.rest.framework.impl.RestDispatcherImpl.dispatch(RestDispatcherImpl.java:83)
              at org.infinispan.rest.RestRequestHandler.handleRestRequest(RestRequestHandler.java:141)
              at org.infinispan.rest.RestRequestHandler.lambda$channelRead0$0(RestRequestHandler.java:120)
              at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
              at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
              at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
              at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:614)
              at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:844)
              at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
              at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
              at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
              at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
              at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
              at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
              at java.base/java.lang.Thread.run(Thread.java:833)
      
      
        

       

       

              wburns@redhat.com Will Burns
              thierry@avanco.be Thierry De Leeuw (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: