From 0259a1401c4882ed924fb72f18c3c0e0c8f1f8b6 Mon Sep 17 00:00:00 2001 From: Dushyant Singh Thakur Date: Fri, 9 Feb 2018 17:15:58 +0530 Subject: sonar critical for error handling Either log or rethrow this exception Sonar Link: https://sonar.onap.org/component_issues?id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr#resolved=false|assignees=dthakur Location: src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java Line No-402 Change-Id: Iaf198076abab39a20b8baa8456cc8b0abecf7607 Issue-ID: DMAAP-288 Signed-off-by: Dushyant Singh Thakur --- .../java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/com/att/nsa') diff --git a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java index 5f38443..8cb6f3c 100644 --- a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java +++ b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java @@ -400,8 +400,7 @@ public class KafkaConsumerCache { try { curator.delete().guaranteed().forPath(fBaseZkPath + "/" + key); } catch (NoNodeException e) { - log.warn("A consumer was deleted from " + fApiId - + "'s cache, but no Cambria API node had ownership of it in ZooKeeper"); + log.error("Exception at : " + e); } catch (Exception e) { log.debug("Unexpected exception while deleting consumer: " + e.getMessage()); } -- cgit 1.2.3-korg