You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Michael Griggs (JIRA)" <ji...@apache.org> on 2017/09/25 11:30:00 UTC
[jira] [Resolved] (IGNITE-4878) IgniteH2Indexing can throw
java.util.ConcurrentModificationException
[ https://issues.apache.org/jira/browse/IGNITE-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Griggs resolved IGNITE-4878.
------------------------------------
Resolution: Duplicate
> 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.4.14#64029)