Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34152

killAllSessions doesn't remove documents from config.system.sessions

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.3
    • Component/s: None
    • None
    • ALL

      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.

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            miguel.nieto@mongodb.com Miguel Ángel Nieto
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: