[SERVER-2026] Add 'seconds waiting' for writes to currentOp() Created: 28/Oct/10  Updated: 03/Jan/18  Resolved: 27/Jun/12

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Improvement Priority: Major - P3
Reporter: Kenny Gorman Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Participants:
Case:

 Description   

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"
},



 Comments   
Comment by Eliot Horowitz (Inactive) [ 17/May/11 ]

Open to suggestions

Comment by Eliot Horowitz (Inactive) [ 17/May/11 ]

I'm not entirely sure what the right semantics are here.

What happens if you yield and then have to wait to re-lock for example...

Generated at Thu Feb 08 02:58:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.