The ouput message for the 11000 should be the same regardless of the storage engine, but it is implemented different on each storage engine. For example:
ephemeralForTest:
"errmsg" : "E11000 duplicate key error dup key: { : 1.0 }", "op" : { "_id" : ObjectId("5aa6ae9c39ecb419fc039661"), "user_id" : 1 }
WiredTiger:
"errmsg" : "E11000 duplicate key error collection: test.some_col index: user_id_1 dup key: { : 1.0 }", "op" : { "_id" : ObjectId("5aa6b0f328382ba2890dc449"), "user_id" : 1 }
mmapv1:
"errmsg" : "E11000 duplicate key error index: test.some_col.$user_id_1 dup key: { : 1.0 }", "op" : { "_id" : ObjectId("5aa6b12826491c753448b588"), "user_id" : 1 }
- duplicates
-
SERVER-37070 All storage engines should show the collection name and the index name in the error message of duplicate keys
- Closed