-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Refine Spring Boot startup message when restoring a Spring Boot application with CRaC #37084
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
Comments
I don't think that's the cause as there's no listener involved here. The code's all in Lines 299 to 317 in 3a99066
I believe what's happening is:
To behave differently, I think we'd need |
This is not yet exposed via the
If that's considered as a good fit by the Boot team, I can comment here as soon as it is available via the CRaC dependency. |
This API, documented here, is now available as part of We can potentially add related checks in https://github.com/spring-projects/spring-checkpoint-restore-smoke-tests once there is a branch of Boot that leverages it. |
When using JVM Checkpoint/Restore with Spring Boot, I can see log messages like:
2 observations:
I guess we see this behavior due to the fact that CRaC support in Spring Framework is stopping and restarting the application context lifecycle and the related listener is still active.
I am wondering if it could be possible to either:
The first proposal would be my preferred option as it would allow use to compare cold startup and restoration time.
The text was updated successfully, but these errors were encountered: