Skip to content
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

Improve logging for HikariCheckpointRestoreLifecycle #42937

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

deki
Copy link
Contributor

@deki deki commented Oct 30, 2024

Adressing #42906, open to change it to an exception instead of the warning message as it won't work as expected without allow-pool-suspension=true.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 30, 2024
@wilkinsona
Copy link
Member

WDYT please, @christophstrobl and @sdeleuze?

@sdeleuze
Copy link
Contributor

Will the warning be also printed when doing a regular shutdown of the application?

@wilkinsona
Copy link
Member

Yes, I believe so. If org.crac.Resource is on the classpath then HikariCheckpointRestoreLifecycle will be auto-configured. The log message will then be output irrespective of the type of shutdown that's being performed.

@christophstrobl
Copy link
Member

Adding the shutdown time is a nice addition, though I think it should be formatted with a reasonable time unit.
Not so sure about the warning log message for suspension. Thought the requirement for pool suspension had been documented/is easy to find.

@deki
Copy link
Contributor Author

deki commented Oct 30, 2024

I don't see it in https://docs.spring.io/spring-boot/reference/packaging/checkpoint-restore.html, where could I have read about it?
I think as long as crac is on classpath, users will consider using checkpoints at some point and the warning message would point them in the right direction.

@christophstrobl
Copy link
Member

the link in the docs seem to be broken.

... resources such as socket, files and thread pools on a limited scope.

...so the info is not as easy to be found as I had assumed.

@wilkinsona
Copy link
Member

#42938 should have fixed the link to the status page.

@philwebb philwebb added type: enhancement A general enhancement for: merge-with-amendments Needs some changes when we merge and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 4, 2024
@philwebb philwebb added this to the 3.4.x milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: merge-with-amendments Needs some changes when we merge type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants