-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Can't create CRaC checkpoint, fails with the error message "Restarting Spring-managed lifecycle beans after JVM restore" #4708
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
Thank you for getting in touch. Right, the MongoDB driver opens connections to the database on create. At the moment there's no out of the box solution that allows to capture an in flight snapshot with the driver being initialized. |
Thanks for the update, I'll try out spring-cloud @RefreshScope! |
Hello again! I noticed that this issue was closed. Does that mean you don't plan to support CRaC? Anyhow, regarding the MongoDB driver ticket JAVA-5034, they seem to have been waiting on a response from the reporter before closing the ticket due to inactivity:
Can the reporter give feedback to the ticket JAVA-5034 to move the discussions forward? Based on your recommendations, I have performed some tests with Unfortunately, the 'mongoClient' does not pick up new configuration parameters for the MongoDB connection provided when the app is restored from a checkpoint. I have published a project on GitHub that can be used to verify my partial solution; see https://github.com/magnus-larsson/ml-spring-data-mongodb-crac-error-demo. The I don't understand what other Spring Beans I need to refresh to make the Can you help out? |
Thank you for circling back to this issue. Regarding |
IIRC, What could work is configuring the driver from |
Thanks for your help! I have been trying to refresh I have added a comment to JAVA-5034. But I can't reopen the ticket, so I'm unsure if my comment will get any attention. @christophstrobl: As a reporter, can you reopen the issue referring to my comment? |
I cannot update the ticket status of MongoDB tickets. Please also note that in a Spring Boot arrangement, Spring Boot handles the client's configuration, and all code to initialize config properties is Spring Boot code. |
spring-data-mongodb
seems to prevent creating CRaC checkpoints.Pull request 35 in the
spring-lifecycle-smoke-tests
- project can be used to reproduce the problem.The pull request contains the comment "Currently failing due to open connections held by the MongoDB driver.".
The CRaC test fails immediately after the checkpointing is started with:
To compare with, the
spring-data-jpa
- CRaC test run fine with the commands:The text was updated successfully, but these errors were encountered: