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

Add per-operation locking statistics summary to slow operation log output

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-rc9, 3.1.0
    • Component/s: Concurrency, Diagnostics
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:

      Description

      We should restore locking summary statistics of some sort to the slow query log.

      Example of 2.6 output (see "locks"):

      2015-01-09T18:37:07.163-0500 [conn1] query test.foo planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:0 locks(micros) r:65 nreturned:1 reslen:42 0ms

      Output as of ~2.8.0-rc5:

      2015-01-09T18:40:26.683-0500 I QUERY    [conn1] query test.foo planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:0 nscannedObjects:1 keyUpdates:0 writeConflicts:0 numYields:0 nreturned:1 reslen:42 0ms

      Also need to reenable jstests/core/profile4.js.

        Attachments

          Activity

            People

            • Votes:
              5 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: