[ML] Kill process after executor has shutdown (elastic/x-pack-elasticsearch#3958)

Original commit: elastic/x-pack-elasticsearch@4c58aa51bf
This commit is contained in:
David Kyle 2018-02-19 12:11:22 +00:00 committed by GitHub
parent 206f47707c
commit 137488c9f9
1 changed files with 1 additions and 1 deletions

View File

@ -187,8 +187,8 @@ public class AutodetectCommunicator implements Closeable {
try { try {
processKilled = true; processKilled = true;
autoDetectResultProcessor.setProcessKilled(); autoDetectResultProcessor.setProcessKilled();
autodetectProcess.kill();
autodetectWorkerExecutor.shutdown(); autodetectWorkerExecutor.shutdown();
autodetectProcess.kill();
if (awaitCompletion) { if (awaitCompletion) {
try { try {