-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
Labels:
-
Query Execution
-
ALL
-
(copied to CRM)
Towards the end of find command execution, we call endQueryOp to fill out some CurOp metrics. Among these is OpDebug::execStats, which we populate only after checking that the operation is eligible for profiling.
However, the CurOp timer continues to tick after this point. If the operation's duration is below the slowMS threshold when we check profiling eligibility in endQueryOp but has exceeded slowMS by the time we check again at the very end of the command code path, then we will incorrectly profile the operation without execStats.