Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11759

errmsg is empty on sharding create index error

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • 2.5.3
    • Sharding
    • None
    • Fully Compatible

    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 }

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: