[SERVER-21376] Explain in "queryPlanner" or "executionStats" mode fails to report rejected plans Created: 10/Nov/15  Updated: 17/Nov/15  Resolved: 11/Nov/15

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.2.0-rc2
Fix Version/s: 3.2.0-rc3

Type: Bug Priority: Major - P3
Reporter: David Storch Assignee: Charlie Swanson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-20111 Explain helpers report incorrect plan... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

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)
Participants:

 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.



 Comments   
Comment by Githook User [ 11/Nov/15 ]

Author:

{u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'charlie.swanson@mongodb.com'}

Message: SERVER-21376 Fill in 'rejectedPlans' field of explain for relevant verbosities
Branch: master
https://github.com/mongodb/mongo/commit/fd539883bfc534a7f16aa352d503c903e9d367df

Comment by Charlie Swanson [ 10/Nov/15 ]

david.storch, on it!

Generated at Thu Feb 08 03:57:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.