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

Improve error message when trying to create wildcard index on 4.2 under FCV 4.0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.14
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible

      Description

      An attempt to create a wildcard index under FCV 4.0 with a 4.1/4.2 binary, mongod returns the following error:

      {
          "ok" : 0,
          "errmsg" : "Unknown index plugin 'wildcard'",
          "code" : 67,
          "codeName" : "CannotCreateIndex"
      } 

      We should change this error to state that featureCompatibilityVersion must be 4.2 to create a wildcard index.

        Attachments

          Activity

            People

            Assignee:
            xinhao.zhang Xin Hao Zhang (Inactive)
            Reporter:
            james.wahlin James Wahlin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: