summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2013-03-18 10:28:44 -0400
committerGreg Studer <greg@10gen.com>2013-03-18 11:33:33 -0400
commited9d5f067faadc0bcaeed184f47657741b30f59d (patch)
tree358d8bef2e472cd8eda81f1ae4bd6bd8e1d63bad
parent4873c2bd64b71af9713eb75b222a7e13c6c4e747 (diff)
downloadmongo-ed9d5f067faadc0bcaeed184f47657741b30f59d.tar.gz
Revert "Revert "SERVER-8648 add explicit timeout to checkStatus connection""
also SERVER-8940 buildbot remove2.js flush pool manually before retrying query
-rw-r--r--jstests/sharding/remove2.js5
-rw-r--r--src/mongo/client/dbclient_rs.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/jstests/sharding/remove2.js b/jstests/sharding/remove2.js
index daa5077431c..556f4c9200d 100644
--- a/jstests/sharding/remove2.js
+++ b/jstests/sharding/remove2.js
@@ -61,6 +61,11 @@ addShard = function(st, replTest) {
return x < 2;
} , "no balance happened", 60000 );
+ // NOTE: To avoid getMore problems stranding cursors b/c of our current conn
+ // pool behavior, this needs to be run.
+ // TODO: Remove once conn pooling behavior is better
+ printjson( coll.getMongo().getDB("admin").runCommand({ connPoolSync : true }) );
+
try {
assert.eq( 300, coll.find().itcount() );
} catch (e) {
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp
index f98c8d852b5..446e876efd0 100644
--- a/src/mongo/client/dbclient_rs.cpp
+++ b/src/mongo/client/dbclient_rs.cpp
@@ -510,7 +510,7 @@ namespace mongo {
* and tell it to use the internal credentials.
*/
scoped_ptr<ScopedDbConnection> authenticatedConn(
- ScopedDbConnection::getInternalScopedDbConnection( hostAddr ) );
+ ScopedDbConnection::getInternalScopedDbConnection( hostAddr, 5.0 ) );
if ( !authenticatedConn->get()->runCommand( "admin",
BSON( "replSetGetStatus" << 1 ),