Skip to content

Commit

Permalink
fix(kafka): remove global consumer and autoclose it
Browse files Browse the repository at this point in the history
  • Loading branch information
johnBgood committed Jan 23, 2025
1 parent 11c0f51 commit dc47039
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,6 @@ public void startConsumer() {
return null;
} catch (Exception ex) {
LOG.error("Consumer loop failure, retry pending: {}", ex.getMessage(), ex);
<<<<<<< Updated upstream
try {
if (consumer != null) {
consumer.close();
}
} catch (Exception e) {
LOG.error(
"Failed to close consumer before retrying, reason: {}. "
+ "This error will be ignored. If the consumer is still running, it will be disconnected after max.poll.interval.ms.",
e.getMessage());
}
=======
>>>>>>> Stashed changes
throw ex;
}
};
Expand Down

0 comments on commit dc47039

Please sign in to comment.