[DOCS-12080] Docs for SERVER-37001: Add 'idleCursors' flag to $currentOp and report stats we already have Created: 27/Sep/18  Updated: 13/Nov/23  Resolved: 30/Oct/18

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.4, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-37001 Add 'idleCursors' flag to $currentOp ... Closed
Duplicate
is duplicated by DOCS-12079 Docs for SERVER-37090: add idleCursor... Closed
is duplicated by DOCS-12147 Docs for SERVER-3090: Add the ability... Closed
Related
related to DOCS-12123 Docs for SERVER-37007: Add planSummar... Closed
related to DOCS-12125 Docs for SERVER-37004: Add auth check... Closed
is related to DOCS-12105 Docs for SERVER-37006: Move 'originat... Closed
is related to DOCS-12106 Docs for SERVER-37003: Add GenericCur... Closed
Participants:
Days since reply: 5 years, 15 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

Description

Description:

https://docs.google.com/document/d/1sQUw5WU5-6i3-Ac986YGkwn7q7vEqSee39vvP2Mf1bA/edit#heading=h.sye21yee6q34

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.)



 Comments   
Comment by Githook User [ 30/Oct/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12142,DOCS-12105,DOCS-12106,DOCS-12080,DOCS-12147,DOCS-12125: 4.2 currentOp type, idleCursors option, cursor field, originatingCommand -> cursor.originatingCommand, planSummary
Branch: master
https://github.com/mongodb/docs/commit/212e6a0b58decf485ff907096421c9ce55e699a4

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