You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2021/03/25 14:48:00 UTC

[jira] [Resolved] (CAMEL-16395) Unpredictable behaviour of camel main routes health check configuration

     [ https://issues.apache.org/jira/browse/CAMEL-16395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Netherton resolved CAMEL-16395.
-------------------------------------
    Resolution: Fixed

> Unpredictable behaviour of camel main routes health check configuration 
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-16395
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16395
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-main
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Major
>             Fix For: 3.10.0
>
>
> I noticed there's some non-deterministic behaviour going on with the Camel health check config in camel-main. Consider the following configuration to disable the 'netty' route from the RouteHealthCheck:
> camel.health.config[netty].enabled = true
> camel.health.config[timer].enabled = false
> In BaseMainSupport there is this logic:
> https://github.com/apache/camel/blob/master/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java#L989
> Depending on the order in which the config properties are processed, RoutesHealthCheckRepository will either be enabled or disabled.
> I think the code on line 989 in BaseMainSupport support is not required. I think it's enough to just add the configuration like here:
> https://github.com/apache/camel/blob/master/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java#L990



--
This message was sent by Atlassian Jira
(v8.3.4#803005)