[SERVER-34152] killAllSessions doesn't remove documents from config.system.sessions Created: 27/Mar/18  Updated: 23/Apr/18  Resolved: 27/Mar/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Miguel Angel Nieto Assignee: Kelsey Schubert
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-31697 killSessions and friends should remov... Closed
Operating System: ALL
Participants:

 Description   

Hello,

The commands to kill sessions, like killSessions or killAllSessions, should remove all documents from config.system.sessions before returning, but it doesn't happen:

replset:PRIMARY> db.runCommand( { killAllSessions: [ ] } )
{
	"ok" : 1,
	"operationTime" : Timestamp(1522178178, 1),
	"$clusterTime" : {
		"clusterTime" : Timestamp(1522178178, 1),
		"signature" : {
			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
			"keyId" : NumberLong(0)
		}
	}
}
 
replset:PRIMARY> db.system.sessions.aggregate( [ { $listSessions: { } } ] )
{ "_id" : { "id" : UUID("b514f284-58fb-464c-9214-779365b763e9"), "uid" : BinData(0,"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=") }, "lastUse" : ISODate("2018-03-27T18:46:58.524Z") }

Regards.



 Comments   
Comment by Miguel Angel Nieto [ 27/Mar/18 ]

Hi kelsey.schubert,

Thank you very much! You can close this one as duplicate.

Regards.

Comment by Kelsey Schubert [ 27/Mar/18 ]

Hi miguel.nieto,

This was previously discussed in SERVER-31697, where we decided against making this change. Would you like to reopen that discussion or are you comfortable closing this ticket as a dup?

Thanks,
Kelsey

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