diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-03-21 14:01:44 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-03-21 14:25:00 -0400 |
commit | bfebf440342a2266f8febec161334a700dc713af (patch) | |
tree | 30f8ff7861feabc23c622f52a68a0bc3704d40c3 /src/mongo/shell | |
parent | 6849110b99b4fc4e9fd162ac897e1a8e5180e72e (diff) | |
download | mongo-bfebf440342a2266f8febec161334a700dc713af.tar.gz |
SERVER-13306 mongobridge should not try forever to connect to dead
destinations.
The connect timeout is set to 15 seconds of retrying, after which the
connection to the client will be terminated.
Also added some extra logging and diagnostics so it is easier to analyse
test failures in the future.
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/replsettest.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index 8bd16cb921a..4a71174f611 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -753,7 +753,7 @@ ReplSetTest.prototype.stop = function( n , signal, wait /* wait for stop */, opt wait = signal signal = undefined } - + wait = wait || false if( ! wait.toFixed ){ if( wait ) wait = 0 @@ -764,11 +764,15 @@ ReplSetTest.prototype.stop = function( n , signal, wait /* wait for stop */, opt print('ReplSetTest stop *** Shutting down mongod in port ' + port + ' ***'); var ret = MongoRunner.stopMongod( port , signal, opts ); - if( ! ret || wait < 0 ) return ret + if( ! ret || wait < 0 ) { + print('ReplSetTest stop *** Mongod in port ' + port + ' shutdown with code (' + + ret + '), wait (' + wait + ') ***'); + return ret; + } // Wait for shutdown this.waitForHealth( n, this.DOWN, wait ) - + return true } |