rabbitmq / rabbitmq-server

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

rabbit_vhosts: Don't reconcile vhosts if `rabbit` is stopped #12799

Closed dumbbell closed 4 days ago

dumbbell commented 4 days 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.

michaelklishin commented 3 days ago

Good catch.