[DOCS-979] Clarify which fields are included in db.currentOp() Created: 11/Jan/13  Updated: 30/Oct/23  Resolved: 17/Jan/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Randall Hunt Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 11 years, 3 weeks, 1 day ago

 Description   

We should specify which fields are/are-not included in db.currentOp() and what criteria cause fields to be elided.



 Comments   
Comment by auto [ 29/Jan/13 ]

Author:

{u'date': u'2013-01-29T16:29:37Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: merge: DOCS-979
Branch: master
https://github.com/mongodb/docs/commit/3687f13f022205561b911632f4bd02794a62fadd

Comment by auto [ 29/Jan/13 ]

Author:

{u'date': u'2013-01-29T16:20:58Z', u'email': u'epc@10gen.com', u'name': u'Ed Costello'}

Message: DOCS-979 updated after finding a comment from Randall

Randall commented in email:

_active is probably more correctly thought of as _started – things remain active (currently) even when they're yielded. At least in my limited test and understanding of the execution logic. _active only goes back to false during a reset/when the op is done.

I checked in the source and _active will only be set to false
if the op has not started or the op has completed, otherwise it
is always true even if the op has yielded to another op.
Branch: master
https://github.com/mongodb/docs/commit/fe5e46dea07a7fa3c89b973ed064cd7b4357eac3

Comment by Ed Costello [ 29/Jan/13 ]

@samk I had an email from Randall in my pile that explained this a bit further, I just pushed a minor rewrite of this section in https://github.com/epc/docs/pull/new/DOCS-979-currentop

Comment by Randall Hunt [ 17/Jan/13 ]

LGTM, I was just concerned that we were not being clear that the op looks different sometimes and that _active is more consistent with the idea of "started" than _active.

Comment by Sam Kleinman (Inactive) [ 16/Jan/13 ]

ranman do you have more info about this that I may have missed? Its my sense from looking at the code that currentop docs are pretty consistent...

Comment by Sam Kleinman (Inactive) [ 15/Jan/13 ]

https://github.com/mongodb/docs/commit/578876c863000ec8027b23db8cacc3129ec7abca

Comment by Randall Hunt [ 11/Jan/13 ]

http://docs.mongodb.org/manual/reference/current-op/

Generated at Thu Feb 08 07:39:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.