-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
28.0.0.Beta3
-
None
Fixed timeout in Bootablejar#waitForShutdown() makes any long running action >10s fail
Minimal change is to make Bootablejar#waitForShutdown() wait for value set by system property org.wildfly.core.bootable.jar.timeout.
This property is used in InstallationCleaner. And i struggle to see why this is different (and hardcoded to 10s) in waitForShutdown.
Perhaps should org.wildfly.core.bootable.jar.timeout be replaced with well documented org.wildfly.sigterm.suspend.timeout + some additional time.
Cleanup will always have potential to fail in case org.wildfly.core.bootable.jar.timeout is less than org.wildfly.sigterm.suspend.timeout
Another problem is that org.wildfly.core.bootable.jar.timeout is read statically and cannot be set with a system property inside wildfly. This forces usage
of this property to be java -jar -Dorg.wildfly.core.bootable.jar.timeout=30 bootable.jar.