Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear the permissions first to prohibit new incoming connections when deleting a vhost. #4260

Merged
merged 1 commit into from Mar 11, 2022
Merged

Clear the permissions first to prohibit new incoming connections when deleting a vhost. #4260

merged 1 commit into from Mar 11, 2022

Conversation

tomyouyou
Copy link
Contributor

@tomyouyou tomyouyou commented Mar 11, 2022

If a new queue is created while the vhost is being deleted, the new queue will remain.

as below:
The testvh vhost has been deleted. But there is a queue left in the non-existent testvh

rabbitmqctl list_vhosts
Listing vhosts ...
name
/ 

rabbitmqctl list_queues --vhost testvh
Timeout: 60.0 seconds ...
Listing queues for vhost testvh ...
name    messages        messages_ready  messages_unacknowledged consumers
ha-1    0       0       0       0

… deleting a vhost.

If a new queue is created while the vhost is being deleted, the new queue will remain.

as below:
The testvh vhost has been deleted. But there is a queue left in the non-existent testvh

[root@Controller1 ~]# rabbitmqctl list_vhosts
Listing vhosts ...
name
/ 
[root@Controller1 ~]# rabbitmqctl list_queues --vhost testvh
Timeout: 60.0 seconds ...
Listing queues for vhost testvh ...
name    messages        messages_ready  messages_unacknowledged consumers
ha-1    0       0       0       0
@michaelklishin michaelklishin merged commit 7f554d0 into rabbitmq:master Mar 11, 2022
@michaelklishin michaelklishin added this to the 3.10.0 milestone Mar 11, 2022
michaelklishin added a commit that referenced this pull request Mar 11, 2022
Clear the permissions first to prohibit new incoming connections when deleting a vhost. (backport #4260)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants