[SERVER-36721] list_local_sessions.js cannot run concurrently with refreshLogicalSessionCacheNow Created: 17/Aug/18  Updated: 29/Oct/23  Resolved: 25/Sep/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.9, 4.0.4, 4.1.4

Type: Bug Priority: Major - P3
Reporter: Jonathan Reams Assignee: Blake Oler
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Sharding 2018-09-24
Participants:
Linked BF Score: 20

 Description   

The parallel suite very occasionally fails in list_local_sessions.js when it is run concurrently with list_sessions.js. Since list_sessions.js runs the refreshLogicalSessionCacheNow command, which temporarily clears the logical session cache while it's being refreshed, this can interfere with list_local_sessions.js which is trying to enumerate the cache and verify its session still exists.



 Comments   
Comment by Githook User [ 04/Oct/18 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-36721 Prevent tests that use the logical session cache from running in parallel

(cherry picked from commit 184b099350670747503e0765300ad5892293d426)
Branch: v4.0
https://github.com/mongodb/mongo/commit/b4429d5ba772e8b065e748dcebbf4ae950aa7a16

Comment by Githook User [ 04/Oct/18 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-36721 Prevent tests that use the logical session cache from running in parallel

(cherry picked from commit 184b099350670747503e0765300ad5892293d426)
Branch: v3.6
https://github.com/mongodb/mongo/commit/065c4ee82d46d59e6c4af732246f90793b396aad

Comment by Githook User [ 25/Sep/18 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-36721 Prevent list_all_local_sessions.js from being run with other
tests that rely on the LogicalSessionCache in the parallel suite
Branch: master
https://github.com/mongodb/mongo/commit/befd7a7b7ca29edb2a2145d850a44898e07b18a5

Comment by Blake Oler [ 24/Sep/18 ]

Re-opening because we still need to add list_all_local_sessions.js to the serialTestArr.

Comment by Githook User [ 21/Sep/18 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-36721 Prevent tests that use the logical session cache from running in parallel
Branch: master
https://github.com/mongodb/mongo/commit/184b099350670747503e0765300ad5892293d426

Comment by Misha Tyulenev [ 20/Sep/18 ]

blake.oler ack

Comment by Blake Oler [ 20/Sep/18 ]

misha.tyulenev ack Max's approach adding the tests to the serialTestArr?

Comment by Max Hirschhorn [ 17/Aug/18 ]

jonathan.reams, I believe there's value in running list_sessions.js and list_local_sessions.js that moving it to the jstests/noPassthrough/ directory would require running it against a stand-alone, a replica set, and a sharded cluster. It seems like we could address the failure in the parallel suite by adding these two tests to serialTestArr so they don't run the refreshLogicalSessionCacheNow command at the same time as each other.

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