com.mongodb.MongoException$DuplicateKey

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • run sysbench-mongodb error
    via by 彪 杨,
  • Redundant call in DatastoreImpl.ensureIndexes
    via by Vitaly Peressada,
  • GitHub comment 147#23760487
    via GitHub by btiernay
    ,
  • GitHub comment 73#5239153
    via GitHub by nick0nyx
    ,
    • com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/ 127.0.0.1:27017" , "connectionId" : 411 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest5.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0} at com.mongodb.CommandResult.getException(CommandResult.java:74) at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
    No Bugmate found.