Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12147

Docs for SERVER-3090: Add the ability to list open cursors

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

            Assignee:
            Unassigned Unassigned
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 18 weeks, 6 days ago

                Error rendering 'slack.nextup.jira:slack-integration-plus'. Please contact your Jira administrators.