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

getLastError response for failed index build contains extra copy of "err" field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.5.5
    • None
    • None
    • Minor Change
    • ALL

    Description

      Regression since 2.5.4.

      Repro with (mongo version 2.4, mongod version 57a4f169 (2.5.5-pre)):

      db.foo.ensureIndex({a:"blah"});
      printjson(db.getLastErrorObj());

      Output:

      {
      	"err" : "Unknown index plugin 'blah' in index { a: \"blah\" }",
      	"code" : 67,
      	"n" : 0,
      	"connectionId" : 2,
      	"syncMillis" : 0,
      	"writtenTo" : null,
      	"err" : "Unknown index plugin 'blah' in index { a: \"blah\" }",
      	"ok" : 1
      }

      Attachments

        Issue Links

          Activity

            People

              randolph@mongodb.com Randolph Tan
              rassi J Rassi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: