Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8613

karaf-camel-log camel health and readiness checks do not work

XMLWordPrintable

    • % %
    • Fuse 7.0 Sprint 26

      For Karaf on OpenShift we provide the following Camel health & readiness check:

      https://github.com/fabric8io/fabric8/blob/master/components/fabric8-karaf/fabric8-karaf-checks/src/main/java/io/fabric8/karaf/checks/internal/CamelState.java

      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.

              Unassigned Unassigned
              jnethert@redhat.com James Netherton
              Lukas Lowinger Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: