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

Add 'seconds waiting' for writes to currentOp()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: None
    • Component/s: Admin
    • Labels:
      None

      Today the structure for currentOp() is:

      {
      "opid" : 2058596,
      "active" : true,
      "lockType" : "write",
      "waitingForLock" : true,
      "secs_running" : 0,
      "op" : "update",
      "ns" : "javatest.testContainer",
      "query" :

      { "userid" : 3, "title" : 6 }

      ,
      "client" : "172.26.190.16:58825",
      "desc" : "conn"
      },

      Can we alter it such that it has seconds waiting enqueued for write? 'seconds waiting'? It would also be nice to have this in milliseconds for both waiting and running.

      {
      "opid" : 2058596,
      "active" : true,
      "lockType" : "write",
      "waitingForLock" : true,
      "msecs_waiting": 2000
      "msecs_running" : 0,
      "op" : "update",
      "ns" : "javatest.testContainer",
      "query" :

      { "userid" : 3, "title" : 6 }

      ,
      "client" : "xxx.yyy.190.16:58825",
      "desc" : "conn"
      },

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            kgorman Kenny Gorman
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: