Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A1F9B200C47 for ; Wed, 15 Mar 2017 15:30:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9F166160B70; Wed, 15 Mar 2017 14:30:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC334160B72 for ; Wed, 15 Mar 2017 15:30:46 +0100 (CET) Received: (qmail 91790 invoked by uid 500); 15 Mar 2017 14:30:46 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 91548 invoked by uid 99); 15 Mar 2017 14:30:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2017 14:30:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A89841A0704 for ; Wed, 15 Mar 2017 14:30:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WjcQc7uqCnOR for ; Wed, 15 Mar 2017 14:30:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9D9EE61DAE for ; Wed, 15 Mar 2017 14:30:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4CC97E0652 for ; Wed, 15 Mar 2017 14:30:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id CE977243C0 for ; Wed, 15 Mar 2017 14:30:41 +0000 (UTC) Date: Wed, 15 Mar 2017 14:30:41 +0000 (UTC) From: "Otavio Rodolfo Piske (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ARTEMIS-1040) MQTT: Investigate handling of duplicate messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Mar 2017 14:30:47 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Otavio Rodolfo Piske updated ARTEMIS-1040: ------------------------------------------ Attachment: mosquito-test.txt artemis-test.txt Artemis and Mosquitto logs. > 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 > Attachments: artemis-test.txt, mosquito-test.txt > > > 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)