We are using org.apache.camel.spring.Main to run our Camel applications within a spring context. After updating from Camel 2.24.3 to 3.4.1 the gracefull shutdown is not working anymore.
When calling Strg+C in a windows shell (or stopping a service wrapper) the camel context is not stopped/closed and the jvm simply stops after logging this:
In Camel 2.25.1 gracefull shutdown also works fine.
Also using Camel version 3.4.0 or 3.3.0 didn't solve the issue.
I debugged the behaviour and found that, when keeping the CamelHangupInterceptor thread from org.apache.camel.main.DefaultMainShutdownStrategy running after the shutdown call, the Camel context is stopped correctly. But when the CamelHangupInterceptor thread ends also the JVM is stopping.