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:47:00 UTC

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

    [ https://issues.apache.org/jira/browse/CAMEL-17436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469238#comment-17469238 ] 

Michał Ostrowski commented on CAMEL-17436:
------------------------------------------

I have made  [[pull request|https://github.com/apache/camel-spring-boot/pull/428]|https://github.com/apache/camel-spring-boot/pull/428] with test and bugfix.

> 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
>            Priority: Major
>
> 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)