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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.6.3
    • None
    • None
    • None
    • ALL

    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.

      Attachments

        Issue Links

          Activity

            People

              kelsey.schubert@mongodb.com Kelsey T Schubert
              miguel.nieto@mongodb.com Miguel Angel Nieto
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: