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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc2
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • Minor Change
    • ALL

      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.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: