ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Belyak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-6817) CME in GridCacheIoManager.cacheHandlers access
Date Thu, 02 Nov 2017 06:39:00 GMT
Alexander Belyak created IGNITE-6817:
----------------------------------------

             Summary: CME in GridCacheIoManager.cacheHandlers access
                 Key: IGNITE-6817
                 URL: https://issues.apache.org/jira/browse/IGNITE-6817
             Project: Ignite
          Issue Type: Bug
      Security Level: Public (Viewable by anyone)
          Components: general
    Affects Versions: 2.1
            Reporter: Alexander Belyak


Got exception:
{noformat}
java.util.ConcurrentModificationException: null

        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)

        at java.util.HashMap$EntryIterator.next(HashMap.java:1471)

        at java.util.HashMap$EntryIterator.next(HashMap.java:1469)

        at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:355)

       at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:304)

        at org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$100(GridCacheIoManager.java:99)

        at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.onMessage(GridCacheIoManager.java:293)

        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1562)

        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1190)

        at org.apache.ignite.internal.managers.communication.GridIoManager.access$4200(GridIoManager.java:126)

        at org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1097)

        at org.apache.ignite.internal.util.StripedExecutor$Stripe.run(StripedExecutor.java:505)

        at java.lang.Thread.run(Thread.java:748)
{noformat}
becouse in GridCacheIoManager.handleMessage access to GridCacheIoManager.cacheHandles protected
by GridCacheIoManager.rw.readLock, but in GridCacheIoManager.addHandler same collection modify
without rw.writeLock accuiring and idxClsHandlers is just HashMap in GridCacheioManager.MessageHandlers
class.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message