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

Change in Error message for unknown index plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: mongodb-2.6
    • Component/s: None
    • Labels:
    • Environment:
    • # Replies:
      0
    • Last comment by Customer:
      true

      Description

      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
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alvin Alvin Richards
              Participants:
              Last commenter:
              Jonathan Dahl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 6 weeks, 6 days ago