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

list_local_sessions.js should be made paralle suite aware

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Platforms 2017-10-02
    • 0

    Description

      If list_all_local_sessions.js and list_all_local_sessions.js run in parallel, a check in list_all_local_sessions.js may fail.

          function listMyLocalSessions() {
              return db.aggregate([{'$listLocalSessions': {users: [myusername]}}]);
          }
          const myArray = assert.doesNotThrow(listMyLocalSessions).toArray();
          assert.eq(myArray.length, resultArray.length);
      

      Other tests may use the same user, because a value is needed in the no-auth case. This check should be made aware of this possibility.

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: