-
Type: Bug
-
Resolution: Done
-
Priority: 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)