Skip to content

Commit

Permalink
Removing continuous commit logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramindu90 committed Mar 29, 2017
1 parent 7dd50d8 commit fef3688
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ public void run() {
sourceEventListener.onEvent(event);
}
try {
consumer.commitAsync();
if (!records.isEmpty()) {
consumer.commitAsync();
}
} catch (CommitFailedException e) {
log.error("Kafka commit failed for topic/s" + Arrays.toString(topics), e);
log.error("Kafka commit failed for topic kafka_result_topic", e);
}
}
try {
Expand Down

0 comments on commit fef3688

Please sign in to comment.