[SERVER-4045] Display queries for getmore ops in db.currentOp() output Created: 10/Oct/11  Updated: 11/Jul/16  Resolved: 04/Sep/12

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.0.0
Fix Version/s: 2.3.0

Type: New Feature Priority: Minor - P4
Reporter: Allen Gilbert Assignee: Kevin Matulef
Resolution: Done Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-7714 currentop() from master in master-sla... Closed
Related
related to SERVER-16265 Add query details to getmore entry in... Closed
is related to SERVER-7562 Change OplogReader to send query as O... Closed
Participants:

 Description   

db.currentOp() currently displays getmore operations as follows:

{
"opid" : 1009927,
"active" : true,
"lockType" : "read",
"waitingForLock" : false,
"secs_running" : 5,
"op" : "getmore",
"ns" : "db.col",
"query" : {

},
"client_s" : "hostname:56211",
"desc" : "conn",
"threadId" : "0x7f38088b1452",
"connectionId" : 3,
"numYields" : 0
}

It would be nice if this output displayed the query that created the cursor (like the output for query ops)



 Comments   
Comment by auto [ 04/Sep/12 ]

Author:

{u'date': u'2012-08-27T17:10:44-07:00', u'email': u'matulef@10gen.com', u'name': u'Kevin Matulef'}

Message: SERVER-4045 display original query for getmores in currentOp
Branch: master
https://github.com/mongodb/mongo/commit/774bafebf07f662d09f0cce39c62352b8b32bc56

Comment by ttt [ 19/Apr/12 ]

I would consider labelling this as a "bug" not a "new feature" as this behaviour is clearly inconsistent.

Also of note it seems I'm unable to add comment to 'getmore' op.

Generated at Thu Feb 08 03:04:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.