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

Claus Ibsen commented on CAMEL-24465:
-------------------------------------

Fixed via https://github.com/apache/camel/pull/25508 (merged to main, 4.23.0). 
Thanks to Nikita Kokitkar (GitHub @nkokitkar) for the contribution.

_Claude Code on behalf of Claus Ibsen_

> Paho MQTT consumers leak owned clients and threads after startup failures
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-24465
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24465
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-paho, camel-paho-mqtt5
>            Reporter: NMK
>            Priority: Major
>             Fix For: 4.23.0
>
>
> Camel Paho V3 and V5 consumers only disconnect clients when {{isConnected()}} 
> is true and never force-close internally created clients after failed 
> startup. Repeated connection/subscribe timeouts retain Paho clients, Camel 
> contexts, timer threads, and communication resources until the process 
> reaches OOM. Owned clients should always be force-closed on startup failure 
> and shutdown, while externally supplied clients remain untouched.



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

Reply via email to