-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Sending async emails with and without the Batch module causes lingering threads (preventing the JVM from shutting down) #246
Comments
bbottema
added a commit
that referenced
this issue
Jan 31, 2020
…n the executor service has already been shut down (which is possible if it was provided by the user)
bbottema
added a commit
that referenced
this issue
Jan 31, 2020
…ly implements the aggregate shutdown loop and shuts down default executor services
bbottema
added a commit
that referenced
this issue
Jan 31, 2020
…rvice and if not, shut it down together with the connection pool to prevent a JVM shutdown from being blocked.
All the issues are fixed, but I can't release because OSS Sonatype isn't syncing properly to Maven Central currently. The smtp-connection-pool library isn't showing up... |
Just did a quick test with |
bbottema
added a commit
that referenced
this issue
Feb 1, 2020
bbottema
changed the title
Sending async emails with and without the Batch module cause lingering threads
Sending async emails with and without the Batch module causes lingering threads
Feb 1, 2020
Fixed in 6.0.2 |
bbottema
changed the title
Sending async emails with and without the Batch module causes lingering threads
Sending async emails with and without the Batch module causes lingering threads (preventing the JVM from shutting down)
Feb 1, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a couple of issues all of the same type:
These all block the JVM from shutting down. The connection pools and threads properly die, the management around these threads don't.
Part of issue 3 is that when
mailer.shutdownConnectionPool()
is invoked, the executor service is not shutdown. This is part of the bug, but it should only do so when the executor service was not manually provided by the user.The text was updated successfully, but these errors were encountered: