Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 592E6108F4 for ; Tue, 1 Apr 2014 01:27:19 +0000 (UTC) Received: (qmail 60667 invoked by uid 500); 1 Apr 2014 01:27:17 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 60497 invoked by uid 500); 1 Apr 2014 01:27:16 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 60396 invoked by uid 99); 1 Apr 2014 01:27:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 01:27:16 +0000 Date: Tue, 1 Apr 2014 01:27:16 +0000 (UTC) From: "Netlancer (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-5127) MQTT Subscriber with QoS.EXACTLY_ONCE receives messages even after unsubscribing from topic MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-5127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13955984#comment-13955984 ] Netlancer commented on AMQ-5127: -------------------------------- Hi Timothy Bish , The test added reproduces the issue as it has assertEquals(10, received);. the subscriber should not receive those messages. This behaviour has been verified with mosquitto server. Please, let me know if my understanding is not correct. Thanks, nl > MQTT Subscriber with QoS.EXACTLY_ONCE receives messages even after unsubscribing from topic > ------------------------------------------------------------------------------------------- > > Key: AMQ-5127 > URL: https://issues.apache.org/jira/browse/AMQ-5127 > Project: ActiveMQ > Issue Type: Bug > Components: MQTT > Affects Versions: 5.9.0 > Reporter: Netlancer > Labels: mqtt > Fix For: 5.10.0 > > Attachments: AMQ-5127.patch, MQTTTest.patch > > > How to reproduce: > 1. client c1 ( clientid1) connects, subscribes to topic A with QoS.EXACTLY_ONCE , unsubscribes topic A and disconnects. > 2. client c2 ( clientid2) publishes to topic A with QoS.EXACTLY_ONCE. > 3. client c1 ( clientid1) connects back again. > Expectation : client c1 shouldn't receive any messages as it has already unsubscribed > Attached test method to reproduce this issue -- This message was sent by Atlassian JIRA (v6.2#6252)