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

Ivan Iliev edited comment on ARTEMIS-4296 at 10/11/23 7:02 AM:
---------------------------------------------------------------

You may want to check how the Paho client is initialized. If 
autoreconnect=false, we've experienced similar issues(inexplicable mass message 
loss). It should be true, and either clean session = false, or you must 
initialize a custom 
{code:java}
MqttCallbackExtended{code}
 and keep track of your subscriptions, so that you can auto-reestablish on 
{code:java}
connectComplete -> reconnect==true{code}
 


was (Author: iiliev2):
You may want to check how the Paho client is initialized. If 
autoreconnect=false, we've experienced similar issues. It should be true, and 
either clean session = false, or you must initialize a custom 

 
{code:java}
MqttCallbackExtended{code}
 and keep track of your subscribtions, so that you can auto-reestablish on 

 

 
{code:java}
connectComplete -> reconnect==true{code}
 

> Lost MQTT messages
> ------------------
>
>                 Key: ARTEMIS-4296
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4296
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.28.0
>            Reporter: Daniel Martin
>            Priority: Blocker
>
> Please, see [https://github.com/apache/activemq-artemis/pull/4492]:
> {quote}In the following test, a broker client sends 1000 messages which are 
> expected to be received by a second client, which in turn replies to every 
> message with new ones (thus being labeled "server"). _It fails every time_ – 
> the broker just seems to get stuck and stop sending messages at a given 
> moment.
> In case it is useful, when lowering the number of messages sent to 100, you 
> should see that the test sometimes passes.
> I have been running the tests with:
> {code:java}
> $ cd tests/integration-tests
> $ mvn verify -DskipIntegrationTests=false 
> -Dtest="MQTT5Test#testRequestResponseMessages*"{code}
> I created this test to reproduce a slightly more complicated case I am 
> dealing with at the moment where, in a production setting, messages are 
> getting lost left and right and I haven't got a clue why.
> {quote}



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

Reply via email to