lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [13/15] lucene-solr:feature/autoscaling: SOLR-9745: check exit code only if process has finished
Date Tue, 04 Apr 2017 09:14:00 GMT
SOLR-9745: check exit code only if process has finished


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/55b608ce
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/55b608ce
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/55b608ce

Branch: refs/heads/feature/autoscaling
Commit: 55b608ce48afc814262fe4d65e0598e4c8acf0fc
Parents: fd9689c
Author: Mikhail Khludnev <mkhl@apache.org>
Authored: Tue Apr 4 11:01:19 2017 +0300
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Tue Apr 4 14:30:31 2017 +0530

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/util/SolrCLI.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/55b608ce/solr/core/src/java/org/apache/solr/util/SolrCLI.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/util/SolrCLI.java b/solr/core/src/java/org/apache/solr/util/SolrCLI.java
index 3572ea4..7be76af 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 {


Mime
View raw message