diff options
author | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-02-09 16:27:50 +0530 |
---|---|---|
committer | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-02-09 16:27:50 +0530 |
commit | 84c9ee81ae531e116f627a26faddd669e218eb78 (patch) | |
tree | 6b8f4803cfa00b6082df2e27ff72f9f6b9616a73 /src | |
parent | dad864219b2adcf066e3eb6c54a1f1150f900979 (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-290
Change-Id: Ib4dfae7659d7f31a02ba4a8c85a0407b1e165743
Issue-ID: DMAAP-280
Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java | 2 |
1 files changed, 1 insertions, 1 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..7b6e048 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 @@ -288,7 +288,7 @@ public class KafkaConsumerCache { curatorConsumerCache.close(); log.info("Curator client closed"); } catch (ZkInterruptedException e) { - log.warn("Curator client close interrupted: " + e.getMessage()); + log.error("Curator client close interrupted: " + e); } catch (IOException e) { log.warn("Error while closing curator PathChildrenCache for KafkaConsumerCache" + e.getMessage()); } |