Closed deki closed 1 month ago
It turned out though that a new connection is opened directly:
This seems to be the case in your setup but it's impossible for us to know why based on those logs. Can you please share a small sample we can use to reproduce the problem?
Sure will try to narrow it down and share a reproducer...
Figured out that allow-pool-suspension=true
is required for it to work. Improve the logging but this should be probably an exception.
Thanks for the PR, let's continue the discussion there.
Closing in favor of https://github.com/spring-projects/spring-boot/pull/42937.
Despite the open issue https://github.com/brettwooldridge/HikariCP/issues/2082 I had the feeling
HikariCheckpointRestoreLifecycle
would properly close all connections. It turned out though that a new connection is opened directly:This results in stale connections being part of the snapshot as indicated by the warning:
Is there a way to influence this behavior on the Spring Boot end? If not it should be at least mentioned somewhere (maybe on https://docs.spring.io/spring-boot/reference/packaging/checkpoint-restore.html).