From caec6b40fd4645cc9184085c1c8742e94726ee72 Mon Sep 17 00:00:00 2001 From: Erick Date: Thu, 23 Jun 2016 20:49:27 -0700 Subject: [PATCH] SOLR-8546: TestLazyCores is failing a lot on the Jenkins cluster. --- solr/CHANGES.txt | 2 ++ solr/core/src/test/org/apache/solr/core/TestLazyCores.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index d4d1d326fba..a221ee9ab63 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -50,6 +50,8 @@ Bug Fixes * SOLR-9234: srcField parameter works only when all fields are captured in the /update/json/docs endpoint (noble) +* SOLR-8546: SOLR-8546: TestLazyCores is failing a lot on the Jenkins cluster. (Erick Erickson) + Optimizations ---------------------- diff --git a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java b/solr/core/src/test/org/apache/solr/core/TestLazyCores.java index c239b44e772..33d6934e321 100644 --- a/solr/core/src/test/org/apache/solr/core/TestLazyCores.java +++ b/solr/core/src/test/org/apache/solr/core/TestLazyCores.java @@ -668,7 +668,9 @@ public class TestLazyCores extends SolrTestCaseJ4 { @Test public void testMidUseUnload() throws Exception { - final int maximumSleepMillis = random().nextInt(10000); // sleep for up to 10 s + final int maximumSleepMillis = random().nextInt(9999) + 1; // sleep for up to 10 s Must add 1 because using + // this as a seed will rea few lines down will + // throw an exception if this is zero if (VERBOSE) { System.out.println("TestLazyCores.testMidUseUnload maximumSleepMillis="+maximumSleepMillis); }