RabbitMQ Extension with dev mode create fake consumer at each live reload #44040
Labels
area/devmode
area/reactive-messaging
area/smallrye
env/windows
Impacts Windows machines
kind/bug
Something isn't working
kind/bug-thirdparty
Bugs that are caused by third-party components and not causing a major dysfunction of core Quarkus.
Describe the bug
When an application with RabbitMQ extension (
quarkus-messaging-rabbitmq
) is started with dev mode, the live reloading can create fake consumers.This happens with the simplest consumer code possible, without any specific configuration (no property added in
application.properties
).Expected behavior
No response
Actual behavior
Each time the live reloading occurs and the application restarts, a new connection is created to consume the queue. But the subscription of the last run is closed then reopenned.
In the log, the queue is reconsumed many times (once more at each reload) :
How to Reproduce?
The issue can be reproduced with a very simple setup.
quarkus-messaging-rabbitmq
extension. Use the RabbitMQ dev service, with default configurationapplication.properties
emptymvn quarkus:dev
test
is consumed by only one consumers
keyOutput of
uname -a
orver
No response
Output of
java -version
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
3.15.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) | OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: