summaryrefslogtreecommitdiffstats
path: root/dcae-analytics-cdap-tca
diff options
context:
space:
mode:
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-02-15 13:49:16 +0530
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-02-15 13:49:16 +0530
commit86c4d2d93075a2cbd006ef006f1b7761c1d9832e (patch)
tree65d11786d2c26fd8ddf399a2707280ac17690146 /dcae-analytics-cdap-tca
parent2ab54626327d49813a30f7d59de2af1b4085d700 (diff)
sonar critical issue
Either re-interrupt this method or rethrow the InterruptedException sonar Link: https://sonar.onap.org/project/issues?assignees=Snigdha503415&id=org.onap.dcaegen2.analytics.tca%3Adcae-analytics&open=AWFSduXsof9FJ6jfXJfX&resolved=false&severities=CRITICAL Location: src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java line No-121 Change-Id: Icee06bb62b87debda529d1f07193ed2e5009f97b Issue-ID: DCAEGEN2-345 Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
Diffstat (limited to 'dcae-analytics-cdap-tca')
-rw-r--r--dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.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/TCADMaaPMockSubscriberWorker.java b/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java
index e8130f3..155661c 100644
--- a/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java
+++ b/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java
@@ -120,6 +120,7 @@ public class TCADMaaPMockSubscriberWorker extends AbstractWorker {
Thread.sleep(subscriberPollingInterval);
} catch (InterruptedException e) {
LOG.error("Error while sleeping");
+ Thread.currentThread().interrupt();
throw new DCAEAnalyticsRuntimeException("Error while sleeping", LOG, e);
}
}