diff options
author | Greg Studer <greg@10gen.com> | 2013-08-15 11:05:00 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-08-15 18:50:56 -0400 |
commit | 300a2288f247f589ace675160dc95b34a655eb08 (patch) | |
tree | 5d7db64d68efc6cb40610936d72da2617beae77e | |
parent | 10a0a5b2e6c6b2dfe2cbf35e1fa6cb386501474e (diff) | |
download | mongo-300a2288f247f589ace675160dc95b34a655eb08.tar.gz |
SERVER-10498 gle_error_message.js sleep 2 secs for reconnect threshold to reset
-rw-r--r-- | jstests/sharding/gle_error_message.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/sharding/gle_error_message.js b/jstests/sharding/gle_error_message.js index 757901b0114..f8dc6069f67 100644 --- a/jstests/sharding/gle_error_message.js +++ b/jstests/sharding/gle_error_message.js @@ -111,8 +111,10 @@ jsTest.log( "Testing stale version GLE when host goes down..." ) var staleColl = st.s1.getCollection( coll + "" ) staleColl.findOne() -printjson( admin.runCommand({ connPoolStats : true }) ); -//printjson( admin.runCommand({ connPoolSync : true }) ); +// As it turns out, on the *second* auto-reconnect attempt we need to wait at least 2 secs, +// otherwise reconnect fails with FAILED_STATE +sleep( 2000 ); + assert( admin.runCommand({ moveChunk : "" + coll, find : { _id : 0 }, to : shards[2]._id }).ok ); MongoRunner.stopMongod( st.shard2 ) |