-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Exception on amqp connection at the end of each test when application terminates #39393
Comments
/cc @cescoffier (reactive-messaging), @ozangunalp (reactive-messaging) |
So, it's somewhat expected. The error comes from the fact that the AMQP client cannot disconnect properly because the broker has already stopped. We can hide the error when the application is stopping. |
@cescoffier Thanks a lot for looking into this. Then I can safely ignore this for now in my log output and wait for a quarkus update. The fixing PR you provided is probably coming with the next quarkus version right? or some of next ones |
Hello, it's going to be in Quarkus 3.10. I think it's not critical enough to justify a backport in 3.8 and 3.9 (as it's expected and only for tests). My PR just cleans things. |
Thank you. That's fine for me. |
Describe the bug
When running my tests I am observing the following exception all the time:
This started when I introduced smallrye reactive messaging to communicate with an AMQP broker.
It seems whenever the application terminates during tests the amqp connection is interrupted and that exception is thrown.
Also setting
quarkus.shutdown.timeout
doesn't help. The amqp connection should be gracefulfy terminatedExpected behavior
No exception after each test run
The amqp connection should be gracefufly terminated
Actual behavior
Not impacting the test but throwing that exception in the output after each test.
How to Reproduce?
I set up this small app for you to quickly reproduce. You just need to run the GreetingResourceTest.java and you can see the exception already.
Checkout the amqp branch here: https://github.com/mnguetsa/quarkus-reproducer/tree/amqp
Output of
uname -a
orver
No response
Output of
java -version
21
Quarkus version or git rev
3.8.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle 8.5
Additional information
No response
The text was updated successfully, but these errors were encountered: