Skip to content

Apache Lucene open-source search software

Reduce the upper bounds on some randomized variables in FullSolrCloudDistribCmdsTest to reduce risk of OOM

Chris Hostetterdbf90a6e7b8d
diff --git a/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java b/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
index f42e987a17e..d6cbf9bcd26 100644
--- a/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
@@ -622,11 +622,11 @@ public class FullSolrCloudDistribCmdsTest extends AbstractFullDistribZkTestBase
@Override
public void run() {
- int rnds = random().nextInt(TEST_NIGHTLY ? 25 : 3) + 1;
+ int rnds = random().nextInt(TEST_NIGHTLY ? 10 : 3) + 1;
for (int i = 0; i < rnds; i++) {
UpdateRequest uReq;
uReq = new UpdateRequest();
- int cnt = random().nextInt(TEST_NIGHTLY ? 3313 : 350) + 1;
+ int cnt = random().nextInt(TEST_NIGHTLY ? 2000 : 200) + 1;
for (int j = 0; j <cnt; j++) {
addDoc("thread" + name + "_" + i + "_" + j, uReq);
}