SOLR-6419: The ChaosMonkey tests should use fewers jetty instances on non nightly runs.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1620167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-08-24 17:36:38 +00:00
parent ed813910c9
commit acee95a8d7
2 changed files with 18 additions and 5 deletions

View File

@ -107,8 +107,15 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
public ChaosMonkeyNothingIsSafeTest() {
super();
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "2"));
shardCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "7"));
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "-1"));
shardCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "-1"));
if (sliceCount == -1) {
sliceCount = random().nextInt(TEST_NIGHTLY ? 5 : 3) + 1;
}
if (shardCount == -1) {
shardCount = sliceCount + random().nextInt(TEST_NIGHTLY ? 12 : 2);
}
}
@Override

View File

@ -20,7 +20,6 @@ package org.apache.solr.cloud;
import java.util.ArrayList;
import java.util.List;
import org.apache.lucene.util.LuceneTestCase.BadApple;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.impl.CloudSolrServer;
@ -88,8 +87,15 @@ public class ChaosMonkeySafeLeaderTest extends AbstractFullDistribZkTestBase {
public ChaosMonkeySafeLeaderTest() {
super();
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "3"));
shardCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "12"));
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "-1"));
shardCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "-1"));
if (sliceCount == -1) {
sliceCount = random().nextInt(TEST_NIGHTLY ? 5 : 3) + 1;
}
if (shardCount == -1) {
shardCount = sliceCount + random().nextInt(TEST_NIGHTLY ? 12 : 2);
}
}
@Override