From 63350f0a52d66f5c6cb38f9ab151b85b47c0fdee Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Wed, 12 Dec 2012 20:34:37 +0000 Subject: [PATCH] try a 300ms wait on startup to be sure our core(s) have loaded git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1420954 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/client/solrj/embedded/JettySolrRunner.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java index d84c6525dcc..347850d3d7d 100644 --- a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java +++ b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java @@ -237,6 +237,8 @@ public class JettySolrRunner { throw new RuntimeException("Jetty/Solr unresponsive"); } } + + this.wait(300); // always 100ms - can take a moment for our cores to come up } System.clearProperty("shard");