summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2018-05-25 15:30:16 -0400
committerSpencer T Brody <spencer@mongodb.com>2018-05-25 16:48:25 -0400
commitbb6b24c9d6f88242d79ecc670542ec9c2ddb0a11 (patch)
tree0c5fd9a772ef499d6078d5b73287e3bda2f1e014
parentd7304a92459006efc1c8b2d71ade3a80645cfefa (diff)
downloadmongo-bb6b24c9d6f88242d79ecc670542ec9c2ddb0a11.tar.gz
SERVER-35241 Add logging and increase duration in stepdown_kill_other_ops.js
-rw-r--r--jstests/replsets/stepdown_kill_other_ops.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/replsets/stepdown_kill_other_ops.js b/jstests/replsets/stepdown_kill_other_ops.js
index 2974ef3624e..71a40d509b3 100644
--- a/jstests/replsets/stepdown_kill_other_ops.js
+++ b/jstests/replsets/stepdown_kill_other_ops.js
@@ -29,13 +29,14 @@
// from completing if it failed to kill all running operations.
jsTestLog("Running eval() to grab global write lock");
var evalCmd = function() {
- db.eval(function() {
- for (var i = 0; i < 60; i++) {
+ var res = db.eval(function() {
+ for (var i = 0; i < 60 * 10; i++) { // Run for 10 minutes if not interrupted.
// Sleep in 1 second intervals so the javascript engine will notice when
// it's killed
sleep(1000);
}
});
+ print("$eval completed without error. This shouldn't happen! Result: " + tojson(res));
};
var evalRunner = startParallelShell(evalCmd, primary.port);