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

Operation latencies are tracked inconsistently

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL

      Our opLatencies (i.e. Top) tracking is done in the destructor of AutoStatsTracker.

      This is problematic for several reasons:

      • This excludes processing time that occurs before AutoStatsTracker is constructed and after it is destructed
      • This is inconsistent with the latencies we report for slow queries and profiling
      • This makes an extra call to read the clock, that would not be needed if we reported the Top stats in the same place we call completeAndLogOperation().
      • Each command implementation is responsible for correctly using AutoStatsTracker, which means there is no enforced consistency with latency measurements.

            Assignee:
            Unassigned Unassigned
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: