Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2122

java.util.ConcurrentModificationException under heavy concurrent load

    XMLWordPrintable

    Details

      Description

      When running under heavy load with multiple reader/writer threads, the following exception can occur:

      java.util.ConcurrentModificationException
      at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      at java.util.AbstractList$Itr.next(AbstractList.java:343)
      at org.infinispan.schematic.internal.document.BasicArray$2.next(BasicArray.java:283)
      at org.modeshape.jcr.cache.document.DocumentTranslator.childReferencesListFromArray(DocumentTranslator.java:891)
      at org.modeshape.jcr.cache.document.DocumentTranslator.getChildReferences(DocumentTranslator.java:849)
      at org.modeshape.jcr.cache.document.LazyCachedNode.getChildReferences(LazyCachedNode.java:380)
      at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:589)
      at org.modeshape.jcr.JcrSession.node(JcrSession.java:622)
      at org.modeshape.jcr.JcrSession.node(JcrSession.java:641)
      at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:820)
      at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:803)
      at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:127)
      at org.modeshape.jcr.ConcurrentNodeLoadTest.addContentToCustomer(CignaLoadTest.java:234)
      at org.modeshape.jcr.ConcurrentNodeLoadTest$CustomerModifier.call(CignaLoadTest.java:206)
      at org.modeshape.jcr.ConcurrentNodeLoadTest$CustomerModifier.call(CignaLoadTest.java:188)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:662)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rhauch Randall Hauch
                  Reporter:
                  hchiorean Horia Chiorean
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: