Description
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