Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1939

If we threading to add nodes into the repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.5
    • 1.5
    • None
    • None
    • Microsoft windows XP professional, 2GB ram

    Description

      Senario 1:
      we have a root node and it has 1 parent node. i am trying to add 600 nodes to that parent node. so i have created 3 threads and each thread is adding 200 nodes. it works for some time and later on throws an exception

      java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:787)
      at java.util.HashMap$ValueIterator.next(HashMap.java:817)
      at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
      at org.apache.jackrabbit.core.state.SessionItemStateManager.getDescendantTransientItemStates(SessionItemStateManager.java:376)
      at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:361)
      at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1079)
      at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)

      some time it gets HANGED

      Scenario:2
      we have a root node and it has 2 parent node. i am trying to add 600 nodes to eac parent node. so i have created 2 threads and each thread is adding 600 nodes to cach parent node. it works for some time and later on throws an exception

      java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:787)
      at java.util.HashMap$ValueIterator.next(HashMap.java:817)
      at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
      at org.apache.jackrabbit.core.state.SessionItemStateManager.getDescendantTransientItemStates(SessionItemStateManager.java:376)
      at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:361)
      at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1079)
      at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)

      some time it gets HANGED

      please help me to resolve this issue as soon as possible. i would be thankful to you if you could provide me the solution for this as soon as possible

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            akilajani akil ajani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: