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

XMLWordPrintableJSON

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

      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
            Reporter:
            David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: