davsclaus commented on a change in pull request #6755:
URL: https://github.com/apache/camel/pull/6755#discussion_r785277106



##########
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:
       I think we can use some of the same information from below about which 
topicName etc it was




-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to