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/26 13:24:00 UTC

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

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

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

> 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
>          Components: camel-core, camel-main
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Major
>             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)