question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Healthcheck is not showing actual status of consumer

See original GitHub issue

The issue we had were fixed in - https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/pull/991 Although In case if real broker altering is needed and broker will have INCREMENTAL_ALTER_CONFIGS disabled, consumer will have continuous attempts to alter broker config with healthcheck being in UP status at the same time no messages will be consumed.

I feel that health check should be up only if listener container started and ready to receive messages, the issue above is only one of the possible issues we may encounter with KafkaMessageListenerContainer and I believe KafkaMessageChannelBinder should expose isRunning status of KafkaMessageListenerContainer to health endpoint.

As a result showing just a status of topics that are in use is not enough to understand if the binder is healthy and up & running.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tdanylchukcommented, Apr 30, 2021

Hi guys, I might work on this next week, just to be sure we all aligned is proposed idea ok with @garyrussell @sobychacko ?

0reactions
djangofancommented, Apr 12, 2021

Personally, my experience with the health check on spring-cloud-stream-binder-kafka is that it says healthy if it is able to simply ping the kafka endpoint BUT will not say unhealthy if there is any problem actually consuming/producing. I would be nice if this healthcheck would/could cache unhealthy requests as a temporary bad-state.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot failing health checks for Application Load ...
Verify that your application is running. ... The following example shows a typical health check request from the Application Load Balancer ...
Read more >
Health check UI is not showing nor recording status history ...
What happened: Health check UI is not showing nor recording status history when using SQL server storage provider.
Read more >
Health Checks with Spring Boot
Health check functions tell us the status of our running application like whether the service is slow or not available.
Read more >
Platform Analytics Health Check Utility
Can the consumer/producer connect to the database provided during installation and stored in the PAConsumerConfig.yaml configuration file? If not, additional ...
Read more >
Health check logging information | Load Balancing
To see health check logs in Logging, you must ensure that you don't have a ... healthState, HealthState Current health status of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found