summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-09 17:15:58 +0530
committerDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-09 17:15:58 +0530
commit0259a1401c4882ed924fb72f18c3c0e0c8f1f8b6 (patch)
treee7276e0e2f9085a3a3759dd9d12b27a5626b450c /src/main/java
parentdad864219b2adcf066e3eb6c54a1f1150f900979 (diff)
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 <dt00503496@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java3
1 files changed, 1 insertions, 2 deletions
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());
}