You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Michał Ostrowski (Jira)" <ji...@apache.org> on 2022/01/05 11:41:00 UTC

[jira] [Created] (CAMEL-17436) Disabling health check for single route or consumer is not possible

Michał Ostrowski created CAMEL-17436:
----------------------------------------

             Summary: Disabling health check for single route or consumer is not possible
                 Key: CAMEL-17436
                 URL: https://issues.apache.org/jira/browse/CAMEL-17436
             Project: Camel
          Issue Type: Bug
          Components: camel-spring-boot
    Affects Versions: 3.14.0
            Reporter: Michał Ostrowski


I belive there are some bugs in CamelHealthCheckAutoConfiguration that prevents disabling health check on single route or consumer.

For example, configuration like this:

{{camel.health.config[consumer\:cron-delete-expired-tokens].parent=consumers}}
{{camel.health.config[consumer\:cron-delete-expired-tokens].enabled=false}}

causes disabling all consumers health checks.

Configuration like this:

{{camel.health.config[consumer\:cron-delete-expired-tokens].parent=routes}}
{{camel.health.config[consumer\:cron-delete-expired-tokens].enabled=false}}

disables all routes health checks.

Not setting parent causes NullPointerException in HealthCheckRegistry::resolveById().



--
This message was sent by Atlassian Jira
(v8.20.1#820001)