Hi Spring community,

And before saying anything, thank you so much for that wonderful adventure! I'm spring afficionado since 2008 and will never be able to bring you back enough value than the one you bring to the community.

Spring boot version: 3.5.5 with (for frontend facing libraries) - spring actuator - spring-data-jpa

Context: I'm working on a good old 'fat batch' app which transfers data from a database (with a transformation in between source code Sometimes, database migration can take more than 30 minutes.

When using bare spring configuration a an @Order(1) bean, starter becomes stuck after 3 minutes or so without giving any information to the user (neither telling something is stuck), without any notification (I guess it expects an endpoint to be exposed) unless spring.main.web-application-type: none is defined.

Took me approximately 9 month spare time to discover the fix, thus I'm just asking something for the next comers: may you please add a log message to tell someone in the same situation?

  • 'thread will starve because no healthiness probe responding (pring.main.web-application-type: none may be set)'
  • Not blocking the thread?

Thank you for your understanding and to take this feedback into account. Best regards, and never hesitate to reach me if I can help somehow

Comment From: snicoll

I don't understand neither the title nor the description. What fix is that? What's the @Order got to do with it?

If you can build a small sample that reproduces the problem, that would be ideal to make sure we're on the same page.

Comment From: Tcharl

Sorry.

To make it simple. A simple spring boot app, exposing no controller (not a web one, a good old fat jar executed with java -jar) freezes after 3 minutes or so with spring by default. No logs, no information or anything if thrown to the user to tell that there's an issue. A spring boot option exists to circumvent that issue: spring: web-application-type: none should be set. Discovering that magic trick is hard: why would a java execution would stop abruptly?

One of the reproducer would be to use https://github.com/OsgiliathEnterprise/data-migrator/releases/tag/1.114, with a large enough input db dump.