Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16396

Configuring an interval and failure threshold for a health check does not work in all cases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: camel-core, camel-main
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamesnetherton James Netherton
                Reporter:
                jamesnetherton James Netherton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: