increase timeouts and wait time so that RecoveryZkTest is more likely to pass on a slower machine

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sami Siren 2012-09-04 11:57:27 +00:00
parent 1d2096c17a
commit dc0ad3cc2b
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ public abstract class AbstractDistribZkTestBase extends BaseDistributedSearchTes
protected void waitForRecoveriesToFinish(String collection, ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout)
throws Exception {
waitForRecoveriesToFinish(collection, zkStateReader, verbose, failOnTimeout, 120 * (TEST_NIGHTLY ? 2 : 1) * RANDOM_MULTIPLIER);
waitForRecoveriesToFinish(collection, zkStateReader, verbose, failOnTimeout, 480 * (TEST_NIGHTLY ? 2 : 1) * RANDOM_MULTIPLIER);
}
protected void waitForRecoveriesToFinish(String collection,

View File

@ -241,7 +241,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
server.getLbServer().getHttpClient().getParams()
.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 5000);
server.getLbServer().getHttpClient().getParams()
.setParameter(CoreConnectionPNames.SO_TIMEOUT, 15000);
.setParameter(CoreConnectionPNames.SO_TIMEOUT, 40000);
cloudClient = server;
} catch (MalformedURLException e) {
throw new RuntimeException(e);
@ -1196,7 +1196,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
+ DEFAULT_COLLECTION;
HttpSolrServer s = new HttpSolrServer(url);
s.setConnectionTimeout(DEFAULT_CONNECTION_TIMEOUT);
s.setSoTimeout(20000);
s.setSoTimeout(40000);
s.setDefaultMaxConnectionsPerHost(100);
s.setMaxTotalConnections(100);
return s;