You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2015/10/01 15:23:26 UTC

[jira] [Commented] (AMQ-5994) Broker can't recover Durable Subscription on index deletion

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

Christopher L. Shannon commented on AMQ-5994:
---------------------------------------------

[~gtully],

It looks like you had made the change for this and I don't want to back it out as it would cause a regression for AMQ-4000.  However, I'm not sure how else to recover the messages on a complete rebuild of the index if the KahaSubscriptionCommand is skipped at that point.

> Broker can't recover Durable Subscription on index deletion
> -----------------------------------------------------------
>
>                 Key: AMQ-5994
>                 URL: https://issues.apache.org/jira/browse/AMQ-5994
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, KahaDB
>    Affects Versions: 5.12.0
>            Reporter: Christopher L. Shannon
>         Attachments: SubscriptionRecoveryTest.java
>
>
> The broker is unable to recover a durable subscription when replaying the journal to rebuild the index, if the original index was deleted.  The problem is that when the index is recovered, any KahaSubscriptionCommand is ignored so the messages are never recovered because when the messages are replayed the subscriptions don't exist.
> I modified AMQ4212Test.java to demonstrate this issue and I have attached it.
> It looks like the fix for AMQ-4000 is what introduces this problem. 
> The commit for that issue is is : https://git-wip-us.apache.org/repos/asf?p=activemq.git;a=commit;h=0061f6f75538ede8fe3443925e64beb839abfb90



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