This repository was archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 691
spring-cloud-gcp-starter-pubsub not shutting down #1503
Labels
pubsub
GCP PubSub
Comments
Thanks for reporting the issue! |
We identified the issue, will push a fix shortly. |
This was referenced Mar 5, 2019
@danneville This has been fixed in 1.2.0.BUILD-SNAPSHOT, but if using a snapshot version is not an option, you can close the thread pool like this:
|
Excellent thank you @elefeint amd @dmitry-s for you quick responses. I can confirm that this worked for me. I did also have to add the publisherExecutorProvider to get it to work for when I'm publishing messages.
Thanks again |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm experiencing some issues using spring-cloud-gcp-starter-pubsub where the application hangs on shutdown. It sounds the same as this issue #60 which was closed when it wasn't able to be reproduced.
I have created a Spring CommandLineRunner Application that will publish messages to PubSub and then shutdown however it does not. I've provided the bare minimum to reproduce here https://github.com/danneville/spring-gcp-pub-sub-issue . Just the inclusion of the spring-cloud-gcp-starter-pubsub dependency causes the application to hang on shutdown. If you remove the dependency it shuts down immediately as expected.
This happens both when running the application in IntelliJ and on the command line.
I've provided the thread dump in the repo if this helps.
Please can you confirm if this is an issue or if I should be specifying something to gracefully shutdown?
Many thanks
The text was updated successfully, but these errors were encountered: