mirror of https://github.com/apache/lucene.git
SOLR-9745: check exit code only if process has finished
This commit is contained in:
parent
fd9689cb36
commit
55b608ce48
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue