[SERVER-30966] list_local_sessions.js should be made paralle suite aware Created: 06/Sep/17  Updated: 30/Oct/23  Resolved: 28/Sep/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-10-02
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 28/Sep/17 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon', 'username': 'sgolemon'}

Message: SERVER-30966 Make list sessions tests more parallel safe
Branch: master
https://github.com/mongodb/mongo/commit/20a128d3922a3f83f3769ee80ebb4fd607251888

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