Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4878

IgniteH2Indexing can throw java.util.ConcurrentModificationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.9
    • None
    • None
    • None

    Description

      From the Collections#synchronizedCollection method:

           * 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.
      

      Attachments

        Activity

          People

            michael.griggs@gridgain.com Michael Griggs
            michael.griggs@gridgain.com Michael Griggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: