[DOCS-12147] Docs for SERVER-3090: Add the ability to list open cursors Created: 15/Oct/18  Updated: 13/Nov/23  Resolved: 17/Oct/18

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

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: asya, commands, diagnostics, lntrospection
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-3090 Add the ability to list open cursors Closed
Duplicate
duplicates DOCS-12080 Docs for SERVER-37001: Add 'idleCurso... Closed
Participants:
Days since reply: 5 years, 15 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

Description

Description:

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

Engineering Ticket Description:

Allow access to the list of active cursors.

This should allow returning something like this:

> db.runCommand("listCursors")
{ ok:1.0,
 cursors: [
    {
	id:..., 
	ns:..., 
	query:..., 
	client:..., 
	created:...., 
	lastAccess:..., 
	noTimeout:.., 
	timeoutInMS:..., 
	runningMS:...,
	yieldNum:...,  
	user:..., 
	nReturned:..., 
	nPosition:..., 
	...} //recordStats/locks/curOp-info/etc
  ]
}

This command should be user-aware and only return cursors for the active user.

Paramters:

name value desc/behavior
filter <any query filter>, {id:###} This should allow a filter/match param to reduce the total set of cursors returned.
ns/db   filters to this ns/db – command name value is the default for this if not true-ish
user <current> This command should be user-aware and only return cursors for the active user. Optionally this should allow overriding to return all user info if the user has privs

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:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.