From 860241166797e6a559618e4d55e7d0388c4273a6 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Thu, 12 Apr 2018 11:05:55 +0530 Subject: Sonar critical issues Either re-interrupt this method or rethrow the InterruptedException Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vacn32hFUzlqc5o4&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiter.java Line No-144 Change-Id: I6c57315d9a4fc913a5e336feb63e2a11910a9ad8 Issue-ID: DMAAP-405 Signed-off-by: Surendra Reddy Katam --- src/main/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiter.java b/src/main/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiter.java index 1b609b0..4e9fc02 100644 --- a/src/main/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiter.java +++ b/src/main/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiter.java @@ -142,7 +142,8 @@ public class DMaaPCambriaLimiter { log.info(ri.getLabel() + ": " + "No sleep configured, just throwing error."); } } catch (InterruptedException e) { - // ignore + log.error(e.toString()); + Thread.currentThread().interrupt(); } ErrorResponse errRes = new ErrorResponse(HttpStatusCodes.k429_tooManyRequests, DMaaPResponseCode.TOO_MANY_REQUESTS.getResponseCode(), -- cgit 1.2.3-korg