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

Filip Nowak updated AMQ-6387:
-----------------------------
    Attachment: ActiveMqTest.java

> Messages delivered to durable subcriber are kept in broker
> ----------------------------------------------------------
>
>                 Key: AMQ-6387
>                 URL: https://issues.apache.org/jira/browse/AMQ-6387
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.13.4
>         Environment: jdk1.8.0_77
>            Reporter: Filip Nowak
>         Attachments: ActiveMqTest.java
>
>
> Given:
> * broker with disabled persistence
> * non-transactional sessions with {{AUTO_ACKNOWLEDGE}}
> * topic
> When: 
> * there nactive durable subscription
> * messages with are sent to that topic with {{DeliveryMode.PERSISTENT}}
> * subscription becomes active and all messages are delivered
> Then:
> * messages are kept in brokers memory (visible in {{memoryPercentUsage}}, on 
> heap etc)
> When: 
> * messages expiration time or TTL is elapsed
> Then:
> * messages are still kept in brokers memory (visible in 
> {{memoryPercentUsage}}, on heap etc)
> -----
> Messages are kept also when message selector of durable subscription does not 
> match messages sent to topic. Changing {{DeliveryMode}} to {{NON_PERSISTENT}} 
> makes the messages not kept. 
> Attached test case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to