[SERVER-31289] $listLocalCursors test only agg stage Created: 27/Sep/17  Updated: 08/Jan/24  Resolved: 03/Oct/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-37008 Remove $listLocalCursors stage and up... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-10-02, Platforms 2017-10-23
Participants:

 Description   

Add a $listLocalCursors agg stage (buried behind enableTestCommands) to allow killSessions to tell if it's actually killed associated cursors.

It should provide a trimmed down list of cursors on mongos and mongod of the form:

{ id: CURSOR_ID, lsid: LOGICAL_SESSION_ID, ns: NAMESPACE_STRING }

 Comments   
Comment by Githook User [ 03/Oct/17 ]

Author:

{'email': 'jcarey@argv.me', 'name': 'Jason Carey', 'username': 'hanumantmk'}

Message: SERVER-31289 Add test only $listLocalCursors

In order to make the kill sessions test a bit more reliable, adding a
test only agg stage that returns minimal info about cursors. That way
we can see if we killed our specific cursors, rather than looking at
global counts.
Branch: master
https://github.com/mongodb/mongo/commit/3805ccdc25facfe536302321ee4fb485f7030d0c

Comment by Gregory McKeon (Inactive) [ 28/Sep/17 ]

mira.carey@mongodb.com assuming this is 3.6.0-rc0?

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