summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1a0595e)
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=AWFSducGof9FJ6jfXJfg&resolved=false&severities=CRITICAL
Location:
src/main/java/org/onap/dcae/apod/analytics/cdap/plugins/streaming/dmaap/MockDMaaPMRReceiver.java
Line No-117
Change-Id: Iaa2d2147081682040411c2d88a6b81413507e489
Issue-ID: DCAEGEN2-344
Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
TimeUnit.MILLISECONDS.sleep(pluginConfig.getPollingInterval());
} catch (InterruptedException e) {
LOG.error("Error while sleeping");
TimeUnit.MILLISECONDS.sleep(pluginConfig.getPollingInterval());
} catch (InterruptedException e) {
LOG.error("Error while sleeping");
+ Thread.currentThread().interrupt();
throw new DCAEAnalyticsRuntimeException("Error while sleeping", LOG, e);
}
throw new DCAEAnalyticsRuntimeException("Error while sleeping", LOG, e);
}