You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Akos Baraz (JIRA)" <ji...@apache.org> on 2010/03/24 10:35:46 UTC

[jira] Updated: (AMQ-2663) Failed durable subscription re-activation when keepDurableSubsActive=false

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

Akos Baraz updated AMQ-2663:
----------------------------

    Attachment: DurableSubscriptionReactivationTest.java

Here is a testcase. If i set setKeepDurableSubsActive(true) then the test is passed.

> Failed durable subscription re-activation when keepDurableSubsActive=false
> --------------------------------------------------------------------------
>
>                 Key: AMQ-2663
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.3.1
>            Reporter: Akos Baraz
>         Attachments: DurableSubscriptionReactivationTest.java
>
>
> If i set keepDurableSubsActive=false then i won't get the messages after re(!)-activation. I've figured out that the DurableTopicSubscription.deactivate() invokes StoreDurableSubscriberCursor.remove() what is removes the TopicStorePrefetch from the topic. Up to this point everyting is fine. But when the durable subscription becomes active the StoreDurableSubscriberCursor.add won't be called. So DurableTopicSubscription.activate() does not put the cursor back. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.