summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2021-09-21 01:33:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-21 01:57:45 +0000
commit9a43039b812c82bb4858ce3852ad44c25d8aa69d (patch)
tree762c15965ab3e9bc8dd9b2d9d59d15557e8084dc /src/mongo/shell
parenta4e6dbae87a2c801d3f2ea09b78fb9cba4cdd62c (diff)
downloadmongo-9a43039b812c82bb4858ce3852ad44c25d8aa69d.tar.gz
SERVER-53350 Expose methods on ReshardingTest fixture for sending replSetStepUp, SIGTERM, and SIGKILL to shards and config server while resharding is running
(cherry picked from commit 261539ea6562ecd6c9920ae6f5f4449b27353520)
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/servers.js1
-rw-r--r--src/mongo/shell/utils.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js
index ca9e0064e82..b6b5177d83b 100644
--- a/src/mongo/shell/servers.js
+++ b/src/mongo/shell/servers.js
@@ -334,6 +334,7 @@ MongoRunner.logicalOptions = {
bridgeOptions: true,
skipValidation: true,
backupOnRestartDir: true,
+ allowedExitCode: true,
};
MongoRunner.toRealPath = function(path, pathOpts) {
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js
index 300152be1ee..f6da5e89321 100644
--- a/src/mongo/shell/utils.js
+++ b/src/mongo/shell/utils.js
@@ -1247,6 +1247,10 @@ var Random = (function() {
var errorMsg = "The random number generator hasn't been seeded yet; " +
"call Random.setRandomSeed()";
+ function isInitialized() {
+ return initialized;
+ }
+
// Set the random generator seed.
function srand(s) {
initialized = true;
@@ -1314,6 +1318,7 @@ var Random = (function() {
return {
genExp: genExp,
genNormal: genNormal,
+ isInitialized: isInitialized,
rand: rand,
randInt: randInt,
setRandomSeed: setRandomSeed,