You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2016/06/24 04:11:06 UTC
lucene-solr:branch_6x: SOLR-8546: TestLazyCores is failing a lot on
the Jenkins cluster.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x b76f64fdc -> caec6b40f
SOLR-8546: TestLazyCores is failing a lot on the Jenkins cluster.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/caec6b40
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/caec6b40
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/caec6b40
Branch: refs/heads/branch_6x
Commit: caec6b40fd4645cc9184085c1c8742e94726ee72
Parents: b76f64f
Author: Erick <er...@apache.org>
Authored: Thu Jun 23 20:49:27 2016 -0700
Committer: Erick <er...@apache.org>
Committed: Thu Jun 23 21:10:49 2016 -0700
----------------------------------------------------------------------
solr/CHANGES.txt | 2 ++
solr/core/src/test/org/apache/solr/core/TestLazyCores.java | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/caec6b40/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index d4d1d32..a221ee9 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
----------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/caec6b40/solr/core/src/test/org/apache/solr/core/TestLazyCores.java
----------------------------------------------------------------------
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 c239b44..33d6934 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);
}