Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2164

Change in Error message for unknown index plugin

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • mongodb-2.6
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Problem:
      Invoking an incorrect index plug-in results in different message code between versions.

      Reproduce:
      2.4.5

      db.q.drop()
      db.q.insert({b:1})
      db.q.ensureIndex({b: "unique"})
      {
      	"err" : "Unknown index plugin 'unique' in index { b: \"unique\" }",
      	"code" : 16734,
      	"n" : 0,
      	"connectionId" : 216,
      	"ok" : 1
      }
      

      In 2.5.4-Pre

      db.q.drop()
      db.q.insert({b:1})
      db.q.ensureIndex({b: "unique"})
      {
      	"err" : "Unknown index plugin 'unique' in index { b: \"unique\" }",
      	"code" : 67,
      	"n" : 0,
      	"connectionId" : 1,
      	"ok" : 1
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 27 weeks, 3 days ago