ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Griggs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4878) IgniteH2Indexing can throw java.util.ConcurrentModificationException
Date Thu, 30 Mar 2017 08:12:41 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948624#comment-15948624
] 

Michael Griggs commented on IGNITE-4878:
----------------------------------------

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)

Mime
View raw message