Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39324

Profiler entries may omit execStats metrics

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: