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

dev mode reload - rabbitmq - multiple rabbitmq connections #39433

Open
rastislavpapp opened this issue Mar 14, 2024 · 5 comments
Open

dev mode reload - rabbitmq - multiple rabbitmq connections #39433

rastislavpapp opened this issue Mar 14, 2024 · 5 comments

Comments

@rastislavpapp
Copy link

Describe the bug

I'm consuming from a rabbitmq queue in my quarkus app. When reloading the app in dev mode, I'm expecting that the app will disconnect from RabbitMQ, and then connect again. This is what happens, but after the reload, there is 2 connections to the queue instead of 1. I think it's because when disconnecting, a shutdown handler of a queue consumer is triggered (see io.vertx.rabbitmq.impl.RabbitMQClientImpl#basicConsumer), which reconnects back. And then the app reloads and connects again.

Expected behavior

after dev mode reload, there should be only 1 connection to consumed queue

Actual behavior

after dev mode reload, there are multiple connections to consumed queue

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@quarkus-bot
Copy link

quarkus-bot bot commented Mar 14, 2024

/cc @cescoffier (reactive-messaging), @ozangunalp (reactive-messaging)

@cescoffier
Copy link
Member

Which version of Quarkus are you using? I fixed an issue related to that recently.

@rastislavpapp
Copy link
Author

3.8.2

@cescoffier cescoffier self-assigned this Mar 17, 2024
@cescoffier
Copy link
Member

Could you provide a standalone minimal reproducer?

@rastislavpapp
Copy link
Author

Reproduction would need an existing rabbitmq server, as using devservices would affect the problem itself (I think, I can't get docker to work on my machine because of company policy)... so the reproducer would just be an app with a connection to rabbitmq server. I created a simple one - https://github.com/rastislavpapp/quarkus-39433-bug-reproducer

The issue happens every time I restart (via dev mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants