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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Minor Change
    • ALL

      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
      }
      

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

              Created:
              Updated:
              Resolved: