rabbitmq / rabbitmq-server

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

Restarting exchange federation link downstream node leaves orphan queue on upstream #4667

Open lukebakken opened 2 years ago

lukebakken commented 2 years ago

Reproduction steps:

Test project to reproduce:

https://github.com/lukebakken/docker-rabbitmq-cluster

Steps:

https://github.com/lukebakken/docker-rabbitmq-cluster.git
cd docker-rabbitmq-cluster
make image-base
make image-vesc-1034
make up
make import

At this point, you should be able to browse to localhost:15682 to see the upstream management UI, and localhost:15672 to see the downstream. Make a note of which node is running the federation link. Let's say the node is rmq2-ds.local. Run this command to restart it:

docker compose restart rmq2-ds

You should now see the orphaned queue in the upstream, collecting messages.

BryanBedard commented 2 years ago

We are observing the same issue in our environment.

luos commented 1 year ago

FYI, I think this is happening because of this: https://github.com/rabbitmq/rabbitmq-server/issues/7032