From a8017c496886e9b31adc9f2d95f3a4cde74da56d Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Fri, 29 Jul 2016 11:08:22 +0200 Subject: [PATCH] Restore interruption flag correctly in life cycle service Original commit: elastic/x-pack-elasticsearch@c9b075481186590b9379d45e01f4c95fe33bb5c4 --- .../elasticsearch/xpack/watcher/WatcherLifeCycleService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/WatcherLifeCycleService.java b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/WatcherLifeCycleService.java index 2b3576c27a6..4bded277ee0 100644 --- a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/WatcherLifeCycleService.java +++ b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/WatcherLifeCycleService.java @@ -207,7 +207,7 @@ public class WatcherLifeCycleService extends AbstractComponent implements Cluste try { latch.await(); } catch (InterruptedException e) { - Thread.interrupted(); + Thread.currentThread().interrupt(); } }