summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java4
-rw-r--r--src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumer.java2
-rw-r--r--src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java9
3 files changed, 7 insertions, 8 deletions
diff --git a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
index 431163e..a7b0598 100644
--- a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
+++ b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
@@ -161,9 +161,9 @@ public class DMaaPMetricsSender implements Runnable {
o.put("transactionEnabled", false);
fCambria.send(fHostname, o.toString());
} catch (JSONException e) {
- log.warn("Error posting metrics to Cambria: " + e.getMessage());
+ log.error("Error posting metrics to Cambria at send(): " + e);
} catch (IOException e) {
- log.warn("Error posting metrics to Cambria: " + e.getMessage());
+ log.error("Error posting metrics to Cambria at send(): " + e );
}
}
diff --git a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumer.java b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumer.java
index d6bfc83..692f093 100644
--- a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumer.java
+++ b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumer.java
@@ -140,7 +140,7 @@ public class KafkaConsumer implements Consumer {
};
}
} catch (kafka.consumer.ConsumerTimeoutException x) {
- log.debug(fLogTag + ": ConsumerTimeoutException in Kafka consumer; returning null. ");
+ log.error(fLogTag + ": ConsumerTimeoutException in Kafka consumer; returning null & Exception at nextMessage() : " + x);
} catch (java.lang.IllegalStateException x) {
log.error(fLogTag + ": Error found next() at : " + x);
}
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..178d143 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
@@ -82,7 +82,7 @@ public class KafkaConsumerCache {
// the server at least every 30 seconds, timing out after 2 minutes should
// be okay.
// FIXME: consider allowing the client to specify its expected call rate?
- private static final long kDefault_MustTouchEveryMs = 1000 * 60 * 2;
+ private static final long kDefault_MustTouchEveryMs = (long)1000 * 60 * 2;
// check for expirations pretty regularly
private static final long kDefault_SweepEverySeconds = 15;
@@ -288,9 +288,9 @@ 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());
+ log.error("Error while closing curator PathChildrenCache for KafkaConsumerCache" + e);
}
curatorConsumerCache = null;
@@ -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());
}