Apache Lucene open-source search software
SOLR-9745: check exit code only if process has finished
Mikhail Khludnev4c737b8df9b1
diff --git a/solr/core/src/java/org/apache/solr/util/SolrCLI.java b/solr/core/src/java/org/apache/solr/util/SolrCLI.javaindex 3572ea43ca6..7be76af6ed1 100644--- a/solr/core/src/java/org/apache/solr/util/SolrCLI.java+++ b/solr/core/src/java/org/apache/solr/util/SolrCLI.java@@ -2939,7 +2939,7 @@ public class SolrCLI {// safe to ignore ...Thread.interrupted();}- if (handler.getExitValue() != 0) {+ if (handler.hasResult() && handler.getExitValue() != 0) {throw new Exception("Failed to start Solr using command: "+startCmd+" Exception : "+handler.getException());}} else {