-
Bug
-
Resolution: Done
-
Major
-
fuse-7.0
-
%
-
Fuse 7.0 Sprint 26
For Karaf on OpenShift we provide the following Camel health & readiness check:
If any camel context within the container is not in the 'Started' state, then it's considered to be unhealthy.
If I suspend a context via JMX, the result from the /health-check and /readiness-check endpoints is still 'HEALTHY'.
Seems that this.mbeanServer.getService() always returns null and thus no checks are ever performed.
It's also questionable as to whether querying JMX is the right thing to do. If a camel context is stopped, its MBeans are unregistered. Therefore, the health check will have nothing to query and assume the app is healthy.
I've not checked any of the other karaf quickstarts but I assume they have the same issue.