rabbitmq / rabbitmq-server

Open source RabbitMQ: core server and tier 1 (built-in) plugins
https://www.rabbitmq.com/
Other
12.32k stars 3.92k forks source link

rabbit_vhosts: Don't reconcile vhosts if `rabbit` is stopped (backport #12799) #12800

Closed mergify[bot] closed 13 hours ago

mergify[bot] commented 15 hours ago

Why

That timer was started during boot and continued regardless if rabbit was running or stopped.

This caused the reconsiliation to crash if the rabbit app was stopped before the it ended because it tried to access the database even though it was stopped or even reset.

How

We just check if rabbit is running before running one reconciliation and scheduling a new one.


This is an automatic backport of pull request #12799 done by Mergify.