From fba91b77d0f29a93af15b670bbc7ab4b610c699b Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Thu, 27 Jun 2019 18:51:36 +0200 Subject: [PATCH] InterruptedException is never thrown (#7963) And therefore the block will always be false --- codestyle/spotbugs-exclude.xml | 1 - .../druid/emitter/ambari/metrics/AmbariMetricsEmitter.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/codestyle/spotbugs-exclude.xml b/codestyle/spotbugs-exclude.xml index 5db59456e0d..fbaec9123e8 100644 --- a/codestyle/spotbugs-exclude.xml +++ b/codestyle/spotbugs-exclude.xml @@ -29,7 +29,6 @@ --> - diff --git a/extensions-contrib/ambari-metrics-emitter/src/main/java/org/apache/druid/emitter/ambari/metrics/AmbariMetricsEmitter.java b/extensions-contrib/ambari-metrics-emitter/src/main/java/org/apache/druid/emitter/ambari/metrics/AmbariMetricsEmitter.java index 519bee40649..d1ff8e36247 100644 --- a/extensions-contrib/ambari-metrics-emitter/src/main/java/org/apache/druid/emitter/ambari/metrics/AmbariMetricsEmitter.java +++ b/extensions-contrib/ambari-metrics-emitter/src/main/java/org/apache/druid/emitter/ambari/metrics/AmbariMetricsEmitter.java @@ -193,9 +193,6 @@ public class AmbariMetricsEmitter extends AbstractTimelineMetricsSink implements } catch (Exception e) { log.error(e, e.getMessage()); - if (e instanceof InterruptedException) { - Thread.currentThread().interrupt(); - } } }