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

Intermittent exception when deleting counters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Clustered Counter
    • None

      It manifests when running the rest tests on CI machines. The CounterResource fails with the exception:

      java.util.concurrent.CompletionException: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from CounterResourceTest-NodeB-36672, see cause for remote stack trace
      	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
      	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1113)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235)
      	at org.infinispan.rest.resources.CounterResource.deleteCounter(CounterResource.java:109)
      	at org.infinispan.rest.framework.impl.RestDispatcherImpl.dispatch(RestDispatcherImpl.java:57)
      	at org.infinispan.rest.RestRequestHandler.handleRestRequest(RestRequestHandler.java:106)
      	at org.infinispan.rest.RestRequestHandler.channelRead0(RestRequestHandler.java:63)
      	at org.infinispan.rest.Http11RequestHandler.channelRead0(Http11RequestHandler.java:35)
      	at org.infinispan.rest.Http11RequestHandler.channelRead0(Http11RequestHandler.java:18)
      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
      	
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from CounterResourceTest-NodeB-36672, see cause for remote stack trace
      	at org.infinispan.remoting.transport.ResponseCollectors.wrapRemoteException(ResponseCollectors.java:28)
      	at org.infinispan.remoting.transport.ValidSingleResponseCollector.withException(ValidSingleResponseCollector.java:37)
      	at org.infinispan.remoting.transport.ValidSingleResponseCollector.addResponse(ValidSingleResponseCollector.java:21)
      	at org.infinispan.remoting.transport.impl.SingleTargetRequest.addResponse(SingleTargetRequest.java:70)
      	at org.infinispan.remoting.transport.impl.SingleTargetRequest.onResponse(SingleTargetRequest.java:40)
      	at org.infinispan.remoting.transport.impl.RequestRepository.addResponse(RequestRepository.java:52)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1393)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processMessage(JGroupsTransport.java:1296)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.access$300(JGroupsTransport.java:128)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport$ChannelCallbacks.up(JGroupsTransport.java:1441)
      	at org.jgroups.JChannel.up(JChannel.java:775)
      	... 1 more
      	Suppressed: org.infinispan.util.logging.TraceException
      		at org.infinispan.interceptors.impl.SimpleAsyncInvocationStage.get(SimpleAsyncInvocationStage.java:41)
      		at org.infinispan.interceptors.impl.AsyncInterceptorChainImpl.invoke(AsyncInterceptorChainImpl.java:246)
      		at org.infinispan.cache.impl.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1835)
      		at org.infinispan.cache.impl.CacheImpl.remove(CacheImpl.java:676)
      		at org.infinispan.cache.impl.CacheImpl.remove(CacheImpl.java:670)
      		at org.infinispan.cache.impl.AbstractDelegatingCache.remove(AbstractDelegatingCache.java:454)
      		at org.infinispan.cache.impl.EncoderCache.remove(EncoderCache.java:685)
      		at org.infinispan.counter.impl.weak.WeakCounterImpl.removeWeakCounter(WeakCounterImpl.java:117)
      		at org.infinispan.counter.impl.manager.EmbeddedCounterManager.removeCounter(EmbeddedCounterManager.java:282)
      		at org.infinispan.counter.impl.manager.EmbeddedCounterManager.lambda$removeCounter$0(EmbeddedCounterManager.java:129)
      		at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1908)
      		at org.infinispan.counter.impl.manager.EmbeddedCounterManager.removeCounter(EmbeddedCounterManager.java:128)
      		at org.infinispan.counter.impl.manager.EmbeddedCounterManager.undefineCounter(EmbeddedCounterManager.java:137)
      Caused by: java.lang.ClassCastException: class org.infinispan.counter.impl.weak.WeakCounterKey cannot be cast to class [B (org.infinispan.counter.impl.weak.WeakCounterKey is in unnamed module of loader 'app'; [B is in module java.base of loader 'bootstrap')
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at org.infinispan.marshall.exts.ThrowableExternalizer.readGenericThrowable(ThrowableExternalizer.java:282)
      	at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:259)
      	at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
      	at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:748)
      	at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:729)
      	at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:378)
      	at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
      	at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:49)
      	at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:41)
      	at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:748)
      	at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:729)
      	at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:378)
      	at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:212)
      	at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:241)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1385)
      	... 21 more
      

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: