-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.3.12
-
Component/s: Aggregation Framework, Diagnostics
-
None
-
Fully Compatible
-
ALL
-
Query 2016-10-10
On each batch we load through DocumentSourceCursor, we will accidentally bump the keysExamined and docsExamined instead of resetting them to zero and then re-computing them.
More specifically, Explain::getSummaryStats() is called (indirectly) during DocumentSourceCursor::loadBatch(). That will increment the totalKeysExamined and totalDocsExamined for each stage, but these were never reset to 0, so it will double count the first batch.