Skip to content

Spring Cloud 1.5.9 uses Stream, with Kafka as the binder, but health check is not taking effect. #3159

@dawuti

Description

@dawuti

Spring Cloud 1.5.9 uses Stream with Kafka as the binder, but the health check is not taking effect. During the check, there is no status related to the binder. During local debugging, the class BindersHealthIndicatorAutoConfiguration is not executed at all. Checked the order of Spring configuration and found there are "not match" conditions, but the bean is still executed.

BindersHealthIndicatorAutoConfiguration:
Did not match:
- @ConditionalOnBean (types: org.springframework.cloud.stream.binder.DefaultBinderFactory; SearchStrategy: all) did not find any beans (OnBeanCondition)
Matched:
- @ConditionalOnClass found required class 'org.springframework.boot.actuate.health.HealthIndicator'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)
- @ConditionalOnEnabledHealthIndicator management.health.defaults.enabled is considered true (OnEnabledHealthIndicatorCondition)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions