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

(cherry picked from commit dbf90a6e7b)
This commit is contained in:
Chris Hostetter 2019-04-19 14:48:37 -07:00
parent 0bd21a7958
commit 37857b0fd7
1 changed files with 2 additions and 2 deletions

View File

@ -622,11 +622,11 @@ public class FullSolrCloudDistribCmdsTest extends AbstractFullDistribZkTestBase
@Override @Override
public void run() { 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++) { for (int i = 0; i < rnds; i++) {
UpdateRequest uReq; UpdateRequest uReq;
uReq = new UpdateRequest(); 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++) { for (int j = 0; j <cnt; j++) {
addDoc("thread" + name + "_" + i + "_" + j, uReq); addDoc("thread" + name + "_" + i + "_" + j, uReq);
} }