[SERVER-18673] ScopedThreads used by parallel suite do not get TestData configuration Created: 27/May/15  Updated: 19/Sep/15  Resolved: 28/May/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.1.4

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-17861 Change the default storage engine to ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

./mongo --nodb --eval 'TestData = new Object(); TestData.storageEngine = "wiredTiger"; load("jstests/libs/parallelTester.js"); print("TestData is " + tojson(TestData)); var t = new ScopedThread(function() { printjson(TestData || "TestData was not defined in ScopedThread"); }); t.start(); t.join()'

MongoDB shell version: 3.1.4-pre-
TestData is { "storageEngine" : "wiredTiger" }
"TestData was not defined in ScopedThread"

Sprint: Quint Iteration 4
Participants:

 Description   

Proposal is to change the behavior only for ScopedThread instances that are started by the parallelTester, and not a general change to all ScopedThread instances. This means that the code given in "steps to reproduce" will continue to report a failure, but threads created in assert.parallelTests will now get the TestData configuration.



 Comments   
Comment by Githook User [ 28/May/15 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-18673 Copy TestData into ScopedThreads used by parallelTester.

TestData needs to be assigned globally to ensure that a mongo shell
started with startParallelShell() gets the TestData configuration.
Branch: master
https://github.com/mongodb/mongo/commit/3bec3c4ec50342ecf3bec7f0581b8479ab27aa04

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