You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/01/14 11:45:05 UTC

[GitHub] [camel] orpiske commented on a change in pull request #6751: CAMEL-17489: camel-kafka - Unsubscribe before closing the consumer

orpiske commented on a change in pull request #6751:
URL: https://github.com/apache/camel/pull/6751#discussion_r784779315



##########
File path: components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaFetchRecords.java
##########
@@ -212,6 +212,7 @@ protected void startPolling() {
             // only close if not retry
             if (!isRetrying()) {
                 LOG.debug("Closing consumer {}", threadId);
+                safeUnsubscribe();

Review comment:
       An exception here might trigger the exception handler ... but I guess it's OK. 




-- 
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-unsubscribe@camel.apache.org

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