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

ASF GitHub Bot commented on ARTEMIS-2217:
-----------------------------------------

Github user jbertram commented on the issue:

    https://github.com/apache/activemq-artemis/pull/2491
  
    The test code is correct. The state kept in an unclean session includes the 
subscriptions which is why the test doesn't create a subscription before trying 
to receive the message. If the broker doesn't properly clean the session state 
when the client connects with cleanSession=true then it will receive a message 
and the test will fail.


> ‘MQTTSessionState’ in the ‘SESSIONS ConcurrentHashMap’ never be removed
> -----------------------------------------------------------------------
>
>                 Key: ARTEMIS-2217
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2217
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: MQTT
>    Affects Versions: 2.7.0
>            Reporter: Shiping Liang
>            Priority: Major
>
> ‘MQTTSessionState’ in the ‘SESSIONS ConcurrentHashMap’ should be removed when 
> the conusmer (cleanSession is true) connection is closed



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

Reply via email to