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

Creating an index using a non-existing plugin should be an error not a warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0-rc2
    • Component/s: Indexing
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL

      Description

      Currently just does:

      log() << "warning: can't find plugin [" << pluginName << "]" << endl;

      This means that typos like this will succeed and silently (excluding the log) do nothing:

      db.places.ensureIndex({location:"2D"})

      This will be a breaking change for users who mistakenly use string "1" instead of number 1 in their index specs.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: