diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2020-05-12 10:54:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-15 18:14:35 +0000 |
commit | 27a5e2142d4325014013345fefd02daf332e55cd (patch) | |
tree | 0079bffde4a37e39ca809605a783daec8c2b6d69 | |
parent | e4e8a7338834ef224b4d681e7d216a49fb322bfa (diff) | |
download | mongo-27a5e2142d4325014013345fefd02daf332e55cd.tar.gz |
SERVER-48108 ConnectToBridge should be resilient to transient failures on the control connection
-rw-r--r-- | src/mongo/shell/bridge.js | 5 |
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); }; /** |