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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: 3.2.0-rc2
    • Component/s: Querying
    • Labels:
      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)

      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.

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

              Created:
              Updated:
              Resolved: