Skip to content

Commit

Permalink
Merge pull request #301 from ramindu90/master
Browse files Browse the repository at this point in the history
Removing continuous commit logs
  • Loading branch information
mohanvive committed Mar 29, 2017
2 parents 2b529a6 + fef3688 commit c1c8bc0
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 c1c8bc0

Please sign in to comment.