You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Otavio Rodolfo Piske (JIRA)" <ji...@apache.org> on 2017/03/15 14:28:41 UTC

[jira] [Created] (ARTEMIS-1040) MQTT: Investigate handling of duplicate messages

Otavio Rodolfo Piske created ARTEMIS-1040:
---------------------------------------------

             Summary: MQTT: Investigate handling of duplicate messages
                 Key: ARTEMIS-1040
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1040
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: Otavio Rodolfo Piske


When running the Eclipse's Paho MQTT C tests on top of the broker, one of the tests fail because all the messages received seem to have the duplicate flag. 

The test flow is similar to this: 
1. Connect to the broker with QoS 1 and clean session 1.
2. Sends a batch of 3 messages and disconnect right after that. 
3. Perform internal verification of pending deliveries and cleanup (possibly non important for the test).
4. Connect again using the same connection options as before. At this point, the client seems to automatically resend the messages (possibly due to the lack of the PUBACK).
5. Tries to receive the 3 messages sent. At this point, the behavior between Artemis and Mosquitto differ: Mosquitto replies back with 6 messages (of those 3 are marked as duplicate and 3 are not marked). Artemis replies back with 6 messages and all of them are marked as duplicate.

I am not entirely sure if this is a bug or not, but I am opening a ticket based on my discussion with the developers.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)