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

Add aggregation stages to list all active logical sessions on the cluster

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Platforms 2017-07-31, Platforms 2017-08-21, Platforms 2017-09-11

      Two aggregation stages:
      $listLocalSessions - Ennumerate sessions in the node's LogicalSessionsCache
      $listSessions - Ennumerate sessions recorded in the admin.system.sessions collection

      Each stage accepts the following spec:
      {
      allUsers: true|false,
      users: [

      {user:"name", db: "dbname"}

      , ... ],
      }

      allUsers == true will ennumerate all users from the specified source and requires ActionType::listSessions. Specifying a list of users with allUsers==true is an error.

      allUsers == false with no users explicitly specified will default to the currently authenticated user (or non-user if auth is not enabled). If any user is specified in the users array who is NOT the currently logged in user, then ActionType::listSessions is required.

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: