Getting ConcurrentModificationException when load testing

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have 100 threads each of them initializes a class of DBCollection and inserts 1000 records to the database.

      I am getting many errors of:

      Caused by: java.util.ConcurrentModificationException
      at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
      at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384)
      at com.mongodb.DBCollection._checkKeys(DBCollection.java:1076)
      at com.mongodb.DBCollection._checkObject(DBCollection.java:1067)
      at com.mongodb.DBCollection.save(DBCollection.java:614)
      at com.mongodb.DBCollection.save(DBCollection.java:599)

              Assignee:
              Antoine Girbal (Inactive)
              Reporter:
              Moshe Bergman
              None
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: