diff options
author | Eric Milkie <milkie@10gen.com> | 2016-04-25 16:05:29 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2016-04-25 16:35:40 -0400 |
commit | a23916029eb90e7257edf881a30d6d56fb9687de (patch) | |
tree | d99ece55e3d8cad8dbf1033bf5f03741506de5dc /jstests | |
parent | c720b0ba8bf15d826e313e3260e08ec18695d4a5 (diff) | |
download | mongo-a23916029eb90e7257edf881a30d6d56fb9687de.tar.gz |
SERVER-23918 extend stepdown time for replsetfreeze
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/replset3.js | 4 | ||||
-rw-r--r-- | jstests/replsets/replsetfreeze.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jstests/replsets/replset3.js b/jstests/replsets/replset3.js index 2121e395866..23765afcee6 100644 --- a/jstests/replsets/replset3.js +++ b/jstests/replsets/replset3.js @@ -25,9 +25,9 @@ var doTest = function(signal) { print(phase++); - // Step down master. Note: this may close our connection! + // Step down master. Note: this will close our connection! try { - master.getDB("admin").runCommand({replSetStepDown: true, force: 1}); + master.getDB("admin").runCommand({replSetStepDown: 0, force: 1}); } catch (err) { print("caught: " + err + " on stepdown"); } diff --git a/jstests/replsets/replsetfreeze.js b/jstests/replsets/replsetfreeze.js index 2629a78fe15..fc3e9e00b8e 100644 --- a/jstests/replsets/replsetfreeze.js +++ b/jstests/replsets/replsetfreeze.js @@ -57,7 +57,7 @@ replTest.awaitSecondaryNodes(); print("2: step down m1"); try { - master.getDB("admin").runCommand({replSetStepDown: 1, force: 1}); + master.getDB("admin").runCommand({replSetStepDown: 10, force: 1}); } catch (e) { print(e); } @@ -83,7 +83,7 @@ master = replTest.getPrimary(); print("6: step down new master"); try { - master.getDB("admin").runCommand({replSetStepDown: 1, force: 1}); + master.getDB("admin").runCommand({replSetStepDown: 10, force: 1}); } catch (e) { print(e); } |