mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 21:39:25 +00:00
SOLR-9745: check exit code only if process has finished
This commit is contained in:
parent
23b002a0fd
commit
4c737b8df9
@ -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…
x
Reference in New Issue
Block a user