-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
Description:
The only part of the scope that this ticket implemented was adding the idle cursors flag to the existing $currentop aggregation metadata source. It causes the behavior to include one document per idle cursor.
Engineering Ticket Description:
In this ticket, we will make the flag gather a list of idle cursors, determined solely by whether or not they are pinned.
This is similar to what is done in the Proof of Concept except it will also add fields to GenericCursor which are already present on both ClientCursor and ClusterClientCursor
It also should not bother to include any cursor object in the 'inprog' ops for any getmore ops. This will happen later. This was attempted in the POC but we decided to do it a different way, namely by tracking a GenericCursor on the CurOp object during the getMore command.
This covers both mongos and mongod. Any fields that exist exclusively on mongod or exclusively on mongos should be excluded in this ticket.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-37001 Add 'idleCursors' flag to $currentOp and report stats we already have
- Closed
- is duplicated by
-
DOCS-12079 Docs for SERVER-37090: add idleCursors to currentOp output for mongos
- Closed
-
DOCS-12147 Docs for SERVER-3090: Add the ability to list open cursors
- Closed
- is related to
-
DOCS-12105 Docs for SERVER-37006: Move 'originatingCommand' from the top-level $currentOp 'inprog' entry into a 'cursor' subobject
- Closed
-
DOCS-12106 Docs for SERVER-37003: Add GenericCursor to CurOp, expose cursor info in getMore currentOp entry
- Closed
- related to
-
DOCS-12123 Docs for SERVER-37007: Add planSummary to idle cursor $currentOp output
- Closed
-
DOCS-12125 Docs for SERVER-37004: Add auth checks for $currentOp with 'idleCursors'
- Closed