-
Story
-
Resolution: Won't Do
-
Undefined
-
None
-
AMQ 7.10.0.GA
-
None
-
None
-
False
-
-
False
-
The durable subscription can receive messages from any node in the cluster if the distribution/redistribution is enabled but if the broker hosting the durable subscriber fails, and subsequently if the producer gets connected to the next broker before the consumer, then it results in message loss.
Workaround: Precreate all the durable subscriptions with ActiveMQArtemisAddress resource.
Steps to reproduce:
- Start two brokers in a cluster.
- Connect a client to one of them that creates a durable subscription.
- Stop the client.
- Produce some messages anywhere in the cluster and the durable subscription will collect them.
- Kill the node that hosts the durable subscription but keep the producer running.
- At this point, the producer will failover to the node without any durable subscription and the messages will be lost.