[SERVER-11759] errmsg is empty on sharding create index error Created: 18/Nov/13  Updated: 11/Jul/16  Resolved: 20/Nov/13

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.5.3
Fix Version/s: 2.5.5

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

errmsg is populated when performing normal inserts:

mongos> db.runCommand({ insert: '', documents: [{ x: 1 }]})
{ "ok" : 0, "code" : 10094, "errmsg" : "invalid ns: test.", "n" : 0 }

However, errmsg is empty when run against the system.indexes collection

mongos> db.runCommand({ insert: "system.indexes", documents: [ { _id: ObjectId('528a423ea29a612fec1561d7'), ns: "test", key: { x: 1.0 }, name: "x" } ], ordered: true })
{ "ok" : 0, "code" : 26, "errmsg" : "", "n" : 0 }



 Comments   
Comment by Githook User [ 20/Nov/13 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-11759 errmsg is empty on sharding create index error
Branch: master
https://github.com/mongodb/mongo/commit/abe4653b2b96fada1c59916105dcd1cb89d0be2e

Generated at Thu Feb 08 03:26:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.