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

Tomohisa Igarashi commented on CAMEL-9092:
------------------------------------------

I haven't yet made completely clear why that duplicates happen though, the pull 
request I submitted did fix the issue. As Listener.onDisconnected() is also 
invoked when connection recovery happens in mqtt-client internally, invoking 
disconnect() due to this event triggers unnecessary connection 
re-initialization. I also added setting tracer to MQTT when trace is enabled.

> MQTT consumer receives duplicate messages after broker restart
> --------------------------------------------------------------
>
>                 Key: CAMEL-9092
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9092
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mqtt
>    Affects Versions: 2.15.2, 2.16.0
>            Reporter: Tomohisa Igarashi
>         Attachments: MQTTDuplicatesTest.java, MQTTDuplicatesTest.java_activemq
>
>
> if clientId is specified, after ActiveMQ broker restart, camel-mqtt consumer 
> starts to receive duplicate messages. Please see the testcase attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to