[ 
https://issues.apache.org/jira/browse/ARTEMIS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shiping Liang updated ARTEMIS-2226:
-----------------------------------
    Description: Multiple consumers using the same clientId in the cluster, the 
last consumer connection should close the previous consumer connection!  (was:  
In the cluster two consumers using the same clientId, subscribe to the same 
topic on different nodes,MQTT consumers start to consume messages using ANYCAST 
routing。this will cause to use different keys(use addressName as key or use 
"clientId+'.'+addressName" as key) to store Binding as below describe.
Use *_MqttClusterRemoteSubscribeTest_* test. The internal queue name equal 
addressName (use addressName to save `Binding`).Ii is wrong. As the following 
test screenshot:

!clusterTest.png!

Use _*MQTTTest.testNoMessageReceivedAfterUnsubscribeMQTT*_ test. The internal 
queue name equal "clientId+'.'+addressName"(use "clientId+'.'+addressName" to 
save `Binding`). It is good.As the following test screenshot:

  !mqttTest.png!)

> MQTT consumer uses ANYCAST routing to consume messages
> ------------------------------------------------------
>
>                 Key: ARTEMIS-2226
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2226
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Shiping Liang
>            Priority: Major
>
> Multiple consumers using the same clientId in the cluster, the last consumer 
> connection should close the previous consumer connection!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to