summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos José Grillo Ramirez <marcos.grillo@mongodb.com>2021-04-09 16:45:54 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-09 15:20:17 +0000
commit6a09a2b69726407c07521be98baaf5ba6c86373f (patch)
tree6687b195af1958b867eb7ebc9e6b72f13f2790ce
parent52f52fbfce24cdaa806b31e4f32c9a96248eb807 (diff)
downloadmongo-6a09a2b69726407c07521be98baaf5ba6c86373f.tar.gz
SERVER-55897 Incorrect options passed to MongoRunner.stopMongod when trying to skip collection validations
-rw-r--r--jstests/readonly/lib/read_only_test.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js
index bb75610e271..267704bc106 100644
--- a/jstests/readonly/lib/read_only_test.js
+++ b/jstests/readonly/lib/read_only_test.js
@@ -69,7 +69,7 @@ ShardedFixture.prototype.runExecPhase = function runExecPhase(test) {
.operationTime);
}
- this.st.stopAllShards({noCleanData: true, restart: true, skipValidations: true});
+ this.st.stopAllShards({noCleanData: true, restart: true, skipValidation: true});
jsTest.log("Restarting shards as read only standalone instances...");
for (let i = 0; i < this.nShards; ++i) {
@@ -83,7 +83,8 @@ ShardedFixture.prototype.runExecPhase = function runExecPhase(test) {
MongoRunner.runMongod({port: port, dbpath: dbPath, noReplSet: true, noCleanData: true});
// Rename the local.system collection to prevent problems with replset configurations.
tempMongod.getDB('local').getCollection('system').renameCollection('_system');
- MongoRunner.stopMongod(tempMongod, {noCleanData: true, skipValidation: true, wait: true});
+ MongoRunner.stopMongod(
+ tempMongod, null, {noCleanData: true, skipValidation: true, wait: true});
let shardIdentity = shardIdentities[i];
let host = this.hosts[i];
@@ -128,14 +129,15 @@ ShardedFixture.prototype.runExecPhase = function runExecPhase(test) {
let port = this.ports[i];
// Stop the read only shards.
- MongoRunner.stopMongod(readOnlyShards[i],
- {noCleanData: true, skipValidations: true, wait: true});
+ MongoRunner.stopMongod(
+ readOnlyShards[i], null, {noCleanData: true, skipValidation: true, wait: true});
// Run a temporary mongod to rename the local.system collection.
let tempMongod =
MongoRunner.runMongod({port: port, dbpath: dbPath, noReplSet: true, noCleanData: true});
tempMongod.getDB('local').getCollection('_system').renameCollection('system', true);
- MongoRunner.stopMongod(tempMongod, {noCleanData: true, skipValidation: true, wait: true});
+ MongoRunner.stopMongod(
+ tempMongod, null, {noCleanData: true, skipValidation: true, wait: true});
let shardIdentity = shardIdentities[i];
let host = this.hosts[i];