orpiske commented on a change in pull request #6755:
URL: https://github.com/apache/camel/pull/6755#discussion_r786542885
##########
File path:
components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaFetchRecords.java
##########
@@ -242,6 +242,8 @@ private void handleAccordingToStrategy(long
partitionLastOffset, Exception e) {
private void safeUnsubscribe() {
try {
consumer.unsubscribe();
+ } catch (IllegalStateException e) {
+ LOG.warn("The consumer is likely already closed. Skipping the
unsubscription");
Review comment:
This should be fine now. I also logged CAMEL-17509 for some other things
I noticed based on your suggestion.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]