summaryrefslogtreecommitdiffstats
path: root/dcae-analytics-cdap-tca/src
diff options
context:
space:
mode:
authorPooja03 <PM00501616@techmahindra.com>2018-02-28 12:07:32 +0530
committerPooja03 <PM00501616@techmahindra.com>2018-02-28 12:07:32 +0530
commit7904a8783b91aae406aa96949c9d28f9948110e9 (patch)
tree4056dc53f1cb27772e452844858cca5f2435eac6 /dcae-analytics-cdap-tca/src
parentc346dfea14d98957d37f4615b03d0d47c281c7c2 (diff)
Sonar Critical fix
Either re-interrupt this method or rethrow the InterruptedException Sonar Link:https://sonar.onap.org/project/issues?id=org.onap.dcaegen2.analytics.tca%3Adcae-analytics&open=AWFSduXXof9FJ6jfXJfR&resolved=false&types=BUG Location:BaseTCADMaaPMRWorker.java:L81 Change-Id: If9bb3688cf2b356fc551d6e5e80bd84f17452fba Issue-ID: DCAEGEN2-268 Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
Diffstat (limited to 'dcae-analytics-cdap-tca/src')
-rw-r--r--dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/BaseTCADMaaPMRWorker.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/BaseTCADMaaPMRWorker.java b/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/BaseTCADMaaPMRWorker.java
index f9deac8..7681f5b 100644
--- a/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/BaseTCADMaaPMRWorker.java
+++ b/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/BaseTCADMaaPMRWorker.java
@@ -83,6 +83,7 @@ public abstract class BaseTCADMaaPMRWorker extends AbstractWorker {
final String errorMessage =
format("Error while checking TCA DMaaP MR Scheduler worker status name: %s, error: %s",
schedulerName, e);
+ Thread.currentThread().interrupt();
throw new DCAEAnalyticsRuntimeException(errorMessage, LOG, e);
}
}