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 12:26:00 UTC

[jira] [Created] (CAMEL-16396) Configuring an interval and failure threshold for a health check does not work in all cases

James Netherton created CAMEL-16396:
---------------------------------------

             Summary: Configuring an interval and failure threshold for a health check does not work in all cases
                 Key: CAMEL-16396
                 URL: https://issues.apache.org/jira/browse/CAMEL-16396
             Project: Camel
          Issue Type: Bug
            Reporter: James Netherton
            Assignee: James Netherton
             Fix For: 3.10.0


CAMEL-15585 subtly changed the behaviour of HealthCheckRegistryRepository.matchConfiguration, where it now attempts to match the health check configuration based on the id of the parent check.

[https://github.com/apache/camel/blob/41e5be070279a77aec13b8aba7c387015b75bccc/core/camel-health/src/main/java/org/apache/camel/impl/health/HealthCheckRegistryRepository.java#L114]

The original implementation of iterating over the configuration keys and using the key as a match works correctly. So this code should be restored. E.g this:

[https://github.com/apache/camel/blob/camel-3.5.0/core/camel-health/src/main/java/org/apache/camel/impl/health/HealthCheckRegistryRepository.java#L111-L120]



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