Vhost corruption when recreated immediately after deletion #6802
Unanswered
inikulshin
asked this question in
Other
Replies: 1 comment 5 replies
-
Try putting the node into maintenance mode before reusing a vhost - https://www.rabbitmq.com/rabbitmq-upgrade.8.html
Let us know if that works. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RabbitMQ version 3.10.8, Erlang 25.0.4
For historical reasons in our tests we reuse vhosts. The simplest way to prepare empty vhost (just like after creation) for the next test is to delete it and create again (+create user permissions again).
However in this RabbitMQ version (previous one was 3.8.27) this approach leads to occasional vhost corruptions (after some vhost creation that returns success, vhost is irresponsive and even can't be deleted).
In our case during vhost recreation, there can be still client connections to vhost, and clients will also retry to reconnect after the connections are closed during vhost deletion. Maybe this is a root cause, despite my expectation from delete/create vhost operations to support it.
Is there a safe (and also faster than
stop_app
+start_app
, which I'm sure will resolve) workaround for this? Or completely different approach for resetting single vhost?Was it fixed in later RabbitMQ versions?
Maybe
rabbitmqctl set_vhost_limits -p vhost_name '{"max-connections": 0}'
before deletion?P.S. Maybe #6676 is related?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions