You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Michael Griggs (JIRA)" <ji...@apache.org> on 2017/03/29 12:38:41 UTC
[jira] [Created] (IGNITE-4878) IgniteH2Indexing can throw
java.util.ConcurrentModificationException
Michael Griggs created IGNITE-4878:
--------------------------------------
Summary: 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)