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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • 3.2.0-rc2
    • Querying
    • None
    • Fully Compatible
    • ALL
    • 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");
    • 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

        Activity

          People

            charlie.swanson@mongodb.com Charlie Swanson
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: