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

Explain in "queryPlanner" or "executionStats" mode fails to report rejected plans

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc2
    • Fix Version/s: 3.2.0-rc3
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      db.c.drop();
      db.c.ensureIndex({a: 1});
      db.c.ensureIndex({b: 1});
      db.c.find({a: 1, b: 1}).explain("queryPlanner");
      

      Show
      db.c.drop(); db.c.ensureIndex({a: 1}); db.c.ensureIndex({b: 1}); db.c.find({a: 1, b: 1}).explain("queryPlanner");
    • Sprint:
      QuInt C (11/23/15)

      Description

      The queryPlanner.rejectedPlans field of the planner output is always an empty array if the explain mode is "queryPlanner" or "executionStats". This is true even if there are rejected plans which should be reported. This is a regression introduced in SERVER-20111 in version 3.2.0-rc0. It affects only the master branch, and does not affect any stable releases.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: