mirror of https://github.com/apache/lucene.git
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:
parent
ed813910c9
commit
acee95a8d7
|
@ -107,8 +107,15 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
|
||||||
|
|
||||||
public ChaosMonkeyNothingIsSafeTest() {
|
public ChaosMonkeyNothingIsSafeTest() {
|
||||||
super();
|
super();
|
||||||
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "2"));
|
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "-1"));
|
||||||
shardCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "7"));
|
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
|
@Override
|
||||||
|
|
|
@ -20,7 +20,6 @@ package org.apache.solr.cloud;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.BadApple;
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
import org.apache.lucene.util.LuceneTestCase.Slow;
|
||||||
import org.apache.solr.client.solrj.SolrQuery;
|
import org.apache.solr.client.solrj.SolrQuery;
|
||||||
import org.apache.solr.client.solrj.impl.CloudSolrServer;
|
import org.apache.solr.client.solrj.impl.CloudSolrServer;
|
||||||
|
@ -88,8 +87,15 @@ public class ChaosMonkeySafeLeaderTest extends AbstractFullDistribZkTestBase {
|
||||||
|
|
||||||
public ChaosMonkeySafeLeaderTest() {
|
public ChaosMonkeySafeLeaderTest() {
|
||||||
super();
|
super();
|
||||||
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "3"));
|
sliceCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.slicecount", "-1"));
|
||||||
shardCount = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "12"));
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue