Spring Cloud 1.5.9 uses Stream, with Kafka as the binder, but health check is not taking effect.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- backend, observability
Research direction
Start by examining BindersHealthIndicatorAutoConfiguration and the reported @ConditionalOnBean check for DefaultBinderFactory in the Spring configuration condition output. Reproduce the Spring Cloud 1.5.9 Stream setup with Kafka as the binder, then verify whether the binder health status appears during the health check. Done means the configuration executes and the health response includes binder status.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 646
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 8
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-cloud/spring-cloud-stream
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
spring-cloud/spring-cloud-stream#3268 · 1 comment ·
-
bug
spring-cloud/spring-cloud-stream#3257 · 2 comments · 2 reactions · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
spring-cloud/spring-cloud-stream#3242 · 1 comment ·
-
Backport 4.3.x bug
spring-cloud/spring-cloud-stream#3211 · 3 comments · 1 assignee ·
-
bug
spring-cloud/spring-cloud-stream#3208 · 4 comments · 1 reaction · 1 assignee ·
All issues in spring-cloud/spring-cloud-stream
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100