[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 {
processKilled = true;
autoDetectResultProcessor.setProcessKilled();
autodetectProcess.kill();
autodetectWorkerExecutor.shutdown();
autodetectProcess.kill();
if (awaitCompletion) {
try {