-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
-
ALL
-
SP Prioritized List
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The mongod-dump-sessions pretty printer doesn't appear to ever find any sessions. With the following shell commands, we can produce some sessions that are discoverable by the $listSessions pipeline.
MongoDB Enterprise > session = db.getMongo().startSession() session { "id" : UUID("fb9d822c-fab5-4728-b4e1-2e5ea01947de") } MongoDB Enterprise > session.getDatabase("test").getCollection("wut").insertOne({"_id": 3}) { "acknowledged" : true, "insertedId" : 3 } MongoDB Enterprise > db.getSiblingDB("config").system.sessions.aggregate([{'$listSessions': {allUsers: true}}]) { "_id" : { "id" : UUID("fb9d822c-fab5-4728-b4e1-2e5ea01947de"), "uid" : BinData(0,"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=") }, "lastUse" : ISODate("2024-12-17T15:15:44.252Z") } { "_id" : { "id" : UUID("324ba2ee-c344-4405-ba09-896faf07010f"), "uid" : BinData(0,"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=") }, "lastUse" : ISODate("2024-12-17T15:15:44.258Z") }
However, GDB attached to the corresponding server can't find any sessions:
(gdb) mongod-dump-sessions Dumping 0 Session objects from the SessionCatalog