You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2022/12/05 13:52:00 UTC

[jira] [Commented] (CAMEL-18795) camel-kafka: consumer not being closed during shutdown

    [ https://issues.apache.org/jira/browse/CAMEL-18795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17643356#comment-17643356 ] 

Otavio Rodolfo Piske commented on CAMEL-18795:
----------------------------------------------

Probably the easiest / safest way is reverting the fix for 17947 as it seemed to affect only the tests.

> camel-kafka: consumer not being closed during shutdown
> ------------------------------------------------------
>
>                 Key: CAMEL-18795
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18795
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>    Affects Versions: 3.18.4, 3.19.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>
> Quoting a user report on the chat:
> "I have faced with the issue that org.apache.kafka.clients.consumer.Consumer is never closed during an app shutdown, I use camel 3.18.3. 
> It looks that it might happened after these [changes|https://github.com/apache/camel/pull/8095/files]. I don't have this issue on camel 3.18.0
> Maybe it's expected that consumer should be closed [here|https://github.com/apache/camel/blob/main/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaFetchRecords.java#L374], but it looks that default pollExceptionStrategies don't return false from canContinue during an app shutdown. "
>  
> This is caused as unintended side-effect of CAMEL-17947.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)