Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4682

ConcurrentModificationException in JournalEntry.TreeNode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.6, 1.5.6
    • Fix Version/s: 1.4.7, 1.5.9, 1.6.0
    • Component/s: core, documentmk
    • Labels:
      None

      Description

      The JournalDiffLoader introduced in OAK-4528 sometimes causes a ConcurrentModificationException in JournalEntry.TreeNode:

      java.util.ConcurrentModificationException: null
      	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
      	at java.util.HashMap$EntryIterator.next(HashMap.java:1463)
      	at java.util.HashMap$EntryIterator.next(HashMap.java:1461)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:503)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry$TreeNode.accept(JournalEntry.java:504)
      	at org.apache.jackrabbit.oak.plugins.document.JournalEntry.addTo(JournalEntry.java:312)
      	at org.apache.jackrabbit.oak.plugins.document.JournalDiffLoader.readTrunkChanges(JournalDiffLoader.java:150)
      	at org.apache.jackrabbit.oak.plugins.document.JournalDiffLoader.call(JournalDiffLoader.java:74)
      

        Attachments

        1. patch-OAK-4682.diff
          7 kB
          Manfred Baedke

          Issue Links

            Activity

              People

              • Assignee:
                mreutegg Marcel Reutegger
                Reporter:
                mreutegg Marcel Reutegger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: