summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2018-03-07 14:42:50 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-07 14:42:50 +0000
commita7e91a771ed84a4903511b7d750f53ad3c65cceb (patch)
tree88dc0d3c1cef6ec6329ff324c6e5be6baae706d5
parentf44bf039755fb932001ce148950bc781d2a623b2 (diff)
parentf2f7d77c3a9655fe0dbfcd2c7b0c991395e2c3de (diff)
Merge "sonar critical for error handling"
-rw-r--r--src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java b/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java
index 28d48fa..59dc9bf 100644
--- a/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java
+++ b/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java
@@ -183,7 +183,8 @@ public class DMaaPKafkaConsumerFactory implements ConsumerFactory {
kc);
}
} catch (org.I0Itec.zkclient.exception.ZkTimeoutException x) {
- log.warn("Kafka consumer couldn't connect to ZK.");
+ log.error("Exception find at getConsumerFor(String topic, String consumerGroupName,\r\n" +
+ " String consumerId, int timeoutMs) : " + x);
throw new UnavailableException("Couldn't connect to ZK.");
} catch (KafkaConsumerCacheException e) {
log.warn("Failed to cache consumer (this may have performance implications): "