[ML] Kill process after executor has shutdown (elastic/x-pack-elasticsearch#3958)
Original commit: elastic/x-pack-elasticsearch@4c58aa51bf
This commit is contained in:
parent
206f47707c
commit
137488c9f9
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue