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

Improve AMQP Client Shutdown Error Handling #2527

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

cescoffier
Copy link
Contributor

Previously, when the AMQP client was closed and the broker was already stopped (such as in Quarkus tests), it resulted in a failure as the client couldn't disconnect properly. This failure was reported by the Mutiny dropped exception handler, potentially causing noise in the logs.

This commit introduces a safer approach by ignoring the failure during shutdown. Consequently, this failure will no longer be reported, addressing the potential noise in the logs. Importantly, this behavior only applies during application shutdown, ensuring that it doesn't affect normal operation.

Previously, when the AMQP client was closed and the broker was already stopped (such as in Quarkus tests), it resulted in a failure as the client couldn't disconnect properly. This failure was reported by the Mutiny dropped exception handler, potentially causing noise in the logs.

This commit introduces a safer approach by ignoring the failure during shutdown. Consequently, this failure will no longer be reported, addressing the potential noise in the logs. Importantly, this behavior only applies during application shutdown, ensuring that it doesn't affect normal operation.
@ozangunalp ozangunalp merged commit e40ef80 into smallrye:main Mar 13, 2024
4 checks passed
@cescoffier cescoffier deleted the amqp-exception-during-shutdown branch March 14, 2024 06:55
@ozangunalp ozangunalp added this to the 4.19.0 milestone Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants