gnodet opened a new pull request, #22205: URL: https://github.com/apache/camel/pull/22205
## Summary - Always call `System.exit(code)` in `Main.main()` and `KameletMain.main()` after `run()` returns, instead of only when the exit code is non-zero - Fixes the JVM not terminating when `durationMaxIdleSeconds` triggers shutdown and components like RabbitMQ have non-daemon threads still running **Root cause:** The default `durationHitExitCode` is `0`, so when the idle timeout triggered shutdown, `System.exit()` was skipped and RabbitMQ's non-daemon thread pools kept the JVM alive. ## Test plan - [x] Existing `camel-main` tests pass (176 tests) - [x] Verified the workaround from the JIRA (`System.exit(0)` in main) matches this fix -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
