-
Notifications
You must be signed in to change notification settings - Fork 4
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
Shutdown issue in SpringBoot application #72
Comments
Given the following line in the |
I think the problem is, if I call |
We use this hook to handle the stop signal from Docker. If you create several LocalS3 instance during test, then manually shutdown is required. We can check if the Netty channels and event executors are open in the |
This issue has been fixed since version |
Thanks A LOT @Robothy for the quick fix |
Hi @Robothy , although this seems to be working, we are still getting logs like these:
We are using a Spring Boot configuration that stops the local s3 on a @PreDestroy event. Previously, when doing this, we had the issue that both shutdowns (our own event + the JVM hook) made the application not to shutdown correctly and the process was still alive after that. Now it seems that it works fine but we are seeing those logs. We are ignoring them, but might be confusing (even if they are harmless) |
Reopen this issue for investigation. |
I'm using a SpringBoot MVC application and I'm starting the LocalS3 instance in a configuration bean @PostConstruct and shutting it down in the @PreDestroy. When stopping the application I'm getting the following error:
It seems that local s3 gets stopped when spring boot app stops, so I think there is no need to manually call the shutdown in this case.
This is not happening in a WebFlux app
The text was updated successfully, but these errors were encountered: