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

Close connections before ExecutorService #553

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

jeremyg484
Copy link
Contributor

RabbitConnectionFactory will ensure that connections get closed before associated ExecutorService beans are
destroyed, as the connections require the ExecutorService to still be available to execute various cleanup tasks.

A test is added to test the shutdown behavior with both the default ExecutorService and a custom user-defined one.

Fixes #524

`RabbitConnectionFactory` will ensure that connections get closed before
associated `ExecutorService` beans are destroyed, as the connections
require the `ExecutorService` to still be available to execute various
cleanup tasks.

A test is added to test the shutdown behavior with both the default
`ExecutorService` and a custom user-defined one.

Fixes #524
@jeremyg484 jeremyg484 self-assigned this Nov 7, 2023
Copy link

sonarcloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

85.0% 85.0% Coverage
0.0% 0.0% Duplication

@sdelamo sdelamo merged commit 63d840f into master Nov 8, 2023
12 checks passed
@sdelamo sdelamo deleted the executor-shutdown-fix branch November 8, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Tests hang when having a listener with non-default ExecutorService
2 participants