SOLR-9745: check exit code only if process has finished

This commit is contained in:
Mikhail Khludnev 2017-04-04 11:01:19 +03:00 committed by Shalin Shekhar Mangar
parent fd9689cb36
commit 55b608ce48
1 changed files with 1 additions and 1 deletions

View File

@ -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 {