Closed as not planned
Description
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.".
sdk use java 17.0.9.crac-zulu
git clone https://github.com/spring-projects/spring-lifecycle-smoke-tests.git
cd spring-lifecycle-smoke-tests/
git fetch origin pull/35/head:PR35
git switch PR35
./gradlew data:data-mongodb:checkpointRestoreAppTest
The CRaC test fails immediately after the checkpointing is started with:
2024-05-27T10:23:46.519+02:00 INFO 2406006 --- [ main] jdk.crac : Starting checkpoint
Stopping DataReader: was STARTED
count 001: Author{id='id-2', name='Brent Weeks'}
2024-05-27T10:23:46.566+02:00 INFO 2406006 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Restarting Spring-managed lifecycle beans after JVM restore
Starting DataReader: was STOPPED
2024-05-27T10:23:46.567+02:00 INFO 2406006 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Spring-managed lifecycle restart completed (restored JVM running for -1 ms)
2024-05-27T10:23:46.579+02:00 ERROR 2406006 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Failed to take CRaC checkpoint on refresh
at org.springframework.cr.listener.CheckpointListener$CracDelegate.checkpointRestore(CheckpointListener.java:59) ~[cr-listener.jar!/:na]
To compare with, the spring-data-jpa
- CRaC test run fine with the commands:
git switch main
./gradlew data:data-jpa:checkpointRestoreAppTest