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/24 09:52:00 UTC

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

James Netherton created CAMEL-16395:
---------------------------------------

             Summary: 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


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)