-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
Fully Compatible
-
ALL
-
STM 2019-11-14
We can configure failpoints at startup with command line arguments thus:
./mongod --setParameter enableTestCommands=1 --setParameter failpoint.dummy='{ "mode" : "alwaysOn" }'
So it should be possible to pass such command line args through resmoke.py, like:
buildscripts/resmoke.py --mongodSetParameters '{"failpoint.dummy": {"mode": "alwaysOn"}}'
This fails because resmoke doesn't know how to handle dotted parameter names when it generates the JavaScript that constructs TestData. Edited output:
[js_test:rollback_drop_database] 2019-11-07T15:22:05.884-0500 Starting JSTest jstests/replsets/rollback_drop_database.js... mongo --eval TestData = new Object(); TestData.setParameters = new Object(); TestData.setParameters.failpoint.dummy = new Object(); TestData.setParameters.failpoint.dummy.mode = "alwaysOn"; jstests/replsets/rollback_drop_database.js [js_test:rollback_drop_database] 2019-11-07T15:22:07.489-0500 2019-11-07T15:22:07.489-0500 E QUERY [js] uncaught exception: TypeError: TestData.setParameters.failpoint is undefined :
It tries to set TestData.setParameters.failpoint.dummy, but it hasn't created the "failpoint" property first.
Either resmoke.py should create a TestData.setParameters property named "failpoint.dummy" with the dot included, or it should create a property named "failpoint" and then a property named "dummy", I'm not sure which.
- is depended on by
-
SERVER-43593 Deploy TLA+ trace checker to Evergreen
- Closed