Profiler entries may omit execStats metrics

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query Execution
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Bernard Gorman
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: