[ 
https://issues.apache.org/jira/browse/IGNITE-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Griggs updated IGNITE-4878:
-----------------------------------
    Comment: was deleted

(was: https://github.com/apache/ignite/pull/1692)

> IgniteH2Indexing can throw java.util.ConcurrentModificationException
> --------------------------------------------------------------------
>
>                 Key: IGNITE-4878
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4878
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 1.9
>            Reporter: Michael Griggs
>            Assignee: Michael Griggs
>
> From the Collections#synchronizedCollection method:
> {noformat}
>      * It is imperative that the user manually synchronize on the returned
>      * collection when traversing it via {@link Iterator}, {@link Spliterator}
>      * or {@link Stream}:
>      * <pre>
>      *  Collection c = Collections.synchronizedCollection(myCollection);
>      *     ...
>      *  synchronized (c) {
>      *      Iterator i = c.iterator(); // Must be in the synchronized block
>      *      while (i.hasNext())
>      *         foo(i.next());
>      *  }
>      * </pre>
>      * Failure to follow this advice may result in non-deterministic behavior.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to