-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
It looks like the ability to run JS tests from the shell (without going through resmoke.py) is broken due to the error below. This impacts local development and testing:
> var st = new ShardingTest({config:1});
Starting new replica set __unknown_name__-rs0
ShardingTest starting replica set for shard: __unknown_name__-rs0
ReplSetTest starting set '__unknown_name__-rs0'
ReplSetTest n is : 0
{
"useHostName" : true,
"oplogSize" : 16,
"keyFile" : undefined,
"port" : 20000,
"replSet" : "__unknown_name__-rs0",
"dbpath" : "$set-$node",
"useHostname" : true,
"shardsvr" : "",
"pathOpts" : {
"testName" : "__unknown_name__",
"shard" : 0,
"node" : 0,
"set" : "__unknown_name__-rs0"
},
"setParameter" : {
"migrationLockAcquisitionMaxWaitMS" : 30000,
"writePeriodicNoops" : false,
"numInitialSyncConnectAttempts" : 60
},
"waitForConnect" : false,
"restart" : undefined
}
ReplSetTest Starting....
Resetting db path 'D:/Temp/Data/shell/__unknown_name__-rs0-0'
uncaught exception: TypeError: jsTest.options(...).setParameters is undefined :
appendSetParameterArgs@src/mongo/shell/servers.js:1175:21
MongoRunner._startWithArgs@src/mongo/shell/servers.js:1327:16
MongoRunner.runMongod@src/mongo/shell/servers.js:866:18
ReplSetTest/this.start<@src/mongo/shell/replsettest.js:2822:20
_nodeParamToId/<@src/mongo/shell/replsettest.js:231:45
_nodeParamToSingleNode/<@src/mongo/shell/replsettest.js:250:45
ReplSetTest/this.startSetAsync@src/mongo/shell/replsettest.js:631:13
ShardingTest@src/mongo/shell/shardingtest.js:1318:53
@(shell):1:10
It looks like this is due to unchecked reference to here.
The workaround for now is to run this before attempting to execute line from any test:
jsTest.options().setParameters = {};
- duplicates
-
SERVER-47053 Relax oplog application constraints in EMRC=false variants
-
- Closed
-