Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-355

Getting ConcurrentModificationException when load testing

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: 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 Antoine Girbal
            Reporter:
            mbergman Moshe Bergman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: