Sonar critical issues 83/41883/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 10 Apr 2018 06:29:55 +0000 (11:59 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 10 Apr 2018 06:29:55 +0000 (11:59 +0530)
 Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vac632hFUzlqc5ph&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java
Line No-189

Change-Id: Idec33f4ce7e00d5069ea6206a596edd677364f00
Issue-ID: DMAAP-400
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java

index 59dc9bf..02ae109 100644 (file)
@@ -187,7 +187,7 @@ public class DMaaPKafkaConsumerFactory implements ConsumerFactory {
                                                "                       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): "
+                               log.error("Failed to cache consumer (this may have performance implications): "
                                                + e.getMessage());
                        } catch (Exception e) {
                                throw new UnavailableException(