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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.5
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      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

              Assignee:
              renctan Randolph Tan
              Reporter:
              rassi J Rassi
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: