Subscriptions do not re-establish after auto-deletion
On version 54.3.424 using auto-deletion, the following steps have an issue:
- Start RabbitMQ
- Connect to the broker, start publishing items
- Subscribe to the broker with Auto-Delete set to "True"
- Stop the RabbitMQ service
- Restart the RabbitMQ service
The queues auto-delete and never come back. The connections seem to be re-established as the management console reports the correct number and the subscriber stops reporting disconnected events.
If the subscriber restarts (re-establishing the subscription in the process) everything works fine. If non-auto deleting queues are used, everything works as well. Publishers do not seem to run into this problem either.
The logs indicate a "consume failed" for every queue that was being subscribed to.
It's kind of normal. The solution that I do is create a wrapper on the bus, when subscribe auto deletion, it subscribe through the wrapper. Wrapper stores all subscription information and subscribe bus reconnected event.