[SERVER-34614] parallelTester should use a different connection for each new test Created: 23/Apr/18  Updated: 29/Oct/23  Resolved: 09/May/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.17, 3.6.8, 4.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: David Bradford (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-33502 Blacklist or rewrite jsCore tests tha... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6, v3.4
Sprint: TIG 2018-05-21
Participants:
Linked BF Score: 0
Story Points: 2

 Description   

Because each test uses the same connection, tests can share a set of authenticated users, and can interfere with the state of getLastError.

Each new test should get its own connection.



 Comments   
Comment by Githook User [ 24/Aug/18 ]

Author:

{'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}

Message: SERVER-34614: Create a new db connection for each test when running in parallel

(cherry picked from commit 7e4f6276ec553354e2b88a209e3000ea7f729513)
Branch: v3.6
https://github.com/mongodb/mongo/commit/ddbb97455c30a7b14e011bfd5813cf58c7152721

Comment by Githook User [ 17/Aug/18 ]

Author:

{'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}

Message: SERVER-34614: Create a new db connection for each test when running in parallel

(cherry picked from commit 7e4f6276ec553354e2b88a209e3000ea7f729513)
Branch: v3.4
https://github.com/mongodb/mongo/commit/0d18044aabe790f330e9a625175dbc071bd6fb64

Comment by Spencer Jackson [ 15/Aug/18 ]

I'm requesting backport of this ticket to 4.0 and 3.6. We've recently disabled db.eval in parallel tests on older branches. That and this patch is expected to reduce occurrences of BF-6259. SERVER-31552 and SERVER-35890 should as well on master, but aren't suitable for backport.

Comment by Githook User [ 09/May/18 ]

Author:

{'email': 'david.bradford@mongodb.com', 'name': 'David Bradford', 'username': 'dbradf'}

Message: SERVER-34614: Create a new db connection for each test when running in parallel
Branch: master
https://github.com/mongodb/mongo/commit/7e4f6276ec553354e2b88a209e3000ea7f729513

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