From 137488c9f9e1fd81d8ccc9e4db6a67a7f4680a4a Mon Sep 17 00:00:00 2001 From: David Kyle Date: Mon, 19 Feb 2018 12:11:22 +0000 Subject: [PATCH] [ML] Kill process after executor has shutdown (elastic/x-pack-elasticsearch#3958) Original commit: elastic/x-pack-elasticsearch@4c58aa51bf99e9bb624212668812b4fd57184aa9 --- .../xpack/ml/job/process/autodetect/AutodetectCommunicator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/AutodetectCommunicator.java b/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/AutodetectCommunicator.java index c982a95540f..c1812ec6242 100644 --- a/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/AutodetectCommunicator.java +++ b/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/AutodetectCommunicator.java @@ -187,8 +187,8 @@ public class AutodetectCommunicator implements Closeable { try { processKilled = true; autoDetectResultProcessor.setProcessKilled(); - autodetectProcess.kill(); autodetectWorkerExecutor.shutdown(); + autodetectProcess.kill(); if (awaitCompletion) { try {