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

Unsafe iteration over non-concurrent data structure in StateReceiverImpl.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.2.0.Final
    • Fix Version/s: 9.2.1.Final
    • Component/s: Core
    • Labels:
      None

      Description

      16:39:56,137 WARN  [org.infinispan.factories.ComponentRegistry] (ServerService Thread Pool -- 74) ISPN000189: While stopping a cache or cache manager, one of its components failed to stop: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.conflict.impl.StateReceiverImpl.stop() on object of type StateReceiverImpl
          at org.infinispan.commons.util.SecurityActions.lambda$invokeAccessibly$0(SecurityActions.java:83)
          at org.infinispan.commons.util.SecurityActions.doPrivileged(SecurityActions.java:71)
          at org.infinispan.commons.util.SecurityActions.invokeAccessibly(SecurityActions.java:76)
          at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:185)
          at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:968)
          at org.infinispan.factories.AbstractComponentRegistry.lambda$internalStop$7(AbstractComponentRegistry.java:741)
          at org.infinispan.factories.SecurityActions.lambda$run$1(SecurityActions.java:72)
          at org.infinispan.security.Security.doPrivileged(Security.java:76)
          at org.infinispan.factories.SecurityActions.run(SecurityActions.java:71)
          at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:734)
          at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:639)
          at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:256)
          at org.infinispan.cache.impl.CacheImpl.performImmediateShutdown(CacheImpl.java:1046)
          at org.infinispan.cache.impl.CacheImpl.stop(CacheImpl.java:1010)
          at org.infinispan.cache.impl.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:420)
          at org.infinispan.cache.impl.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:420)
          at org.wildfly.clustering.infinispan.spi.service.CacheBuilder.accept(CacheBuilder.java:78)
          at org.wildfly.clustering.infinispan.spi.service.CacheBuilder.accept(CacheBuilder.java:54)
          at org.wildfly.clustering.service.SuppliedValueService.lambda$new$1(SuppliedValueService.java:44)
          at org.wildfly.clustering.service.FunctionalValueService.stop(FunctionalValueService.java:78)
          at org.wildfly.clustering.service.AsynchronousServiceBuilder.lambda$stop$1(AsynchronousServiceBuilder.java:124)
          at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
          at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
          at java.lang.Thread.run(Thread.java:748)
          at org.jboss.threads.JBossThread.run(JBossThread.java:485)
      Caused by: java.util.ConcurrentModificationException
          at java.util.HashMap.forEach(HashMap.java:1292)
          at org.infinispan.conflict.impl.StateReceiverImpl$SegmentRequest.cancel(StateReceiverImpl.java:203)
          at org.infinispan.conflict.impl.StateReceiverImpl.stop(StateReceiverImpl.java:66)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.infinispan.commons.util.SecurityActions.lambda$invokeAccessibly$0(SecurityActions.java:79)
          ... 26 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pferraro Paul Ferraro
                Reporter:
                pferraro Paul Ferraro
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: