Skip to content

Commit

Permalink
#64 Harden this test for load.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 11, 2020
1 parent 2a8774f commit 8552a7a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ public class FullSolrCloudDistribCmdsTest extends SolrCloudTestCase {
@BeforeClass
public static void setupCluster() throws Exception {
System.setProperty("solr.suppressDefaultConfigBootstrap", "false");
System.setProperty("distribUpdateSoTimeout", "3000");
System.setProperty("socketTimeout", "5000");
System.setProperty("connTimeout", "3000");
System.setProperty("solr.test.socketTimeout.default", "5000");
System.setProperty("solr.connect_timeout.default", "3000");
System.setProperty("solr.so_commit_timeout.default", "5000");
System.setProperty("solr.httpclient.defaultConnectTimeout", "3000");
System.setProperty("solr.httpclient.defaultSoTimeout", "5000");
System.setProperty("distribUpdateSoTimeout", "10000");
System.setProperty("socketTimeout", "10000");
System.setProperty("connTimeout", "5000");
System.setProperty("solr.test.socketTimeout.default", "10000");
System.setProperty("solr.connect_timeout.default", "5000");
System.setProperty("solr.so_commit_timeout.default", "10000");
System.setProperty("solr.httpclient.defaultConnectTimeout", "5000");
System.setProperty("solr.httpclient.defaultSoTimeout", "10000");

System.setProperty("solr.httpclient.retries", "1");
System.setProperty("solr.retries.on.forward", "1");
Expand All @@ -88,7 +88,7 @@ public static void setupCluster() throws Exception {

// use a 5 node cluster so with a typical 2x2 collection one node isn't involved
// helps to randomly test edge cases of hitting a node not involved in collection
configureCluster(TEST_NIGHTLY ? 5 : 3).configure();
configureCluster(TEST_NIGHTLY ? 5 : 2).configure();
}

@After
Expand Down

0 comments on commit 8552a7a

Please sign in to comment.