diff options
author | Benety Goh <benety@mongodb.com> | 2017-03-26 07:51:35 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-03-31 12:34:24 -0400 |
commit | ede51fda3a16f7aa3de35579f3cafe886f138a4c (patch) | |
tree | d65b811cb46312762c0719792d35a8257a746587 /jstests | |
parent | 0b0943d8cecba04d7e177c818a6429ff852650cf (diff) | |
download | mongo-ede51fda3a16f7aa3de35579f3cafe886f138a4c.tar.gz |
SERVER-28376 remove references to unsupported ReplSetTest.initiate() initiateTimeout option.
This option was removed in SERVER-27810.
(cherry picked from commit 2e189a57db00b291b171d5a2323700d6f57cd471)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/concurrency/fsm_libs/cluster.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/jstests/concurrency/fsm_libs/cluster.js b/jstests/concurrency/fsm_libs/cluster.js index 6a80990a894..a5705a409af 100644 --- a/jstests/concurrency/fsm_libs/cluster.js +++ b/jstests/concurrency/fsm_libs/cluster.js @@ -190,7 +190,6 @@ var Cluster = function(options) { this.setup = function setup() { var verbosityLevel = 0; - const REPL_SET_INITIATE_TIMEOUT_MS = 5 * 60 * 1000; if (initialized) { throw new Error('cluster has already been initialized'); @@ -217,11 +216,7 @@ var Cluster = function(options) { oplogSize: 1024, verbose: verbosityLevel }; - shardConfig.rsOptions = { - // Specify a longer timeout for replSetInitiate, to ensure that - // slow hardware has sufficient time for file pre-allocation. - initiateTimeout: REPL_SET_INITIATE_TIMEOUT_MS, - }; + shardConfig.rsOptions = {}; } st = new ShardingTest(shardConfig); @@ -272,10 +267,7 @@ var Cluster = function(options) { var rst = new ReplSetTest(replSetConfig); rst.startSet(); - // Send the replSetInitiate command and wait for initialization, with an increased - // timeout. This should provide sufficient time for slow hardware, where files may need - // to be pre-allocated. - rst.initiate(null, null, REPL_SET_INITIATE_TIMEOUT_MS); + rst.initiate(); rst.awaitSecondaryNodes(); conn = rst.getPrimary(); |