summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2020-05-12 10:54:14 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-15 18:14:35 +0000
commit27a5e2142d4325014013345fefd02daf332e55cd (patch)
tree0079bffde4a37e39ca809605a783daec8c2b6d69 /src
parente4e8a7338834ef224b4d681e7d216a49fb322bfa (diff)
downloadmongo-27a5e2142d4325014013345fefd02daf332e55cd.tar.gz
SERVER-48108 ConnectToBridge should be resilient to transient failures on the control connection
Diffstat (limited to 'src')
-rw-r--r--src/mongo/shell/bridge.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/shell/bridge.js b/src/mongo/shell/bridge.js
index e50f9f12c86..fa34809162b 100644
--- a/src/mongo/shell/bridge.js
+++ b/src/mongo/shell/bridge.js
@@ -106,7 +106,10 @@ function MongoBridge(options) {
},
});
- controlConn = new Mongo(hostName + ':' + this.port);
+ assert.soonNoExcept(() => {
+ controlConn = new Mongo(hostName + ':' + this.port);
+ return true;
+ }, 'failed to make control connection to the mongobridge on port ' + this.port);
};
/**