You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2019/04/19 21:48:44 UTC

[lucene-solr] branch master updated: Reduce the upper bounds on some randomized variables in FullSolrCloudDistribCmdsTest to reduce risk of OOM

This is an automated email from the ASF dual-hosted git repository.

hossman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new dbf90a6  Reduce the upper bounds on some randomized variables in FullSolrCloudDistribCmdsTest to reduce risk of OOM
dbf90a6 is described below

commit dbf90a6e7b8d9038cb5d0e6a5d23704e1ec92531
Author: Chris Hostetter <ho...@apache.org>
AuthorDate: Fri Apr 19 14:48:37 2019 -0700

    Reduce the upper bounds on some randomized variables in FullSolrCloudDistribCmdsTest to reduce risk of OOM
---
 .../src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 f42e987..d6cbf9b 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);
           }