com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/ 127.0.0.1:27017" , "connectionId" : 414 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest8.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}

Google Groups | 彪 杨 | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    run sysbench-mongodb error

    Google Groups | 3 years ago | 彪 杨
    com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/ 127.0.0.1:27017" , "connectionId" : 414 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest8.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}

    Root Cause Analysis

    1. com.mongodb.MongoException$DuplicateKey

      { "serverUsed" : "localhost/ 127.0.0.1:27017" , "connectionId" : 414 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest8.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}

      at com.mongodb.CommandResult.getException()
    2. MongoDB Java Driver
      CommandResult.throwOnError
      1. com.mongodb.CommandResult.getException(CommandResult.java:74)
      2. com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
      2 frames