andreas-schroeder / kafka-health-check

Health Check for Kafka Brokers.
MIT License
243 stars 84 forks source link

Health-check prints "cannot fetch metadata. No topics created?" after kafka has been restarted #38

Open fedotxxl opened 5 years ago

fedotxxl commented 5 years ago

Hello. I'm testing your health check:

  1. Start kafka
  2. Start health check
  3. It prints 200 {"broker":0,"status":"sync"}
  4. Stop kafka
  5. It prints 500 {"status": "nook"}
  6. Start kafka.
  7. Health check still prints {"status": "nook"} and logs metadata could not be retrieved, assuming broker unhealthy: cannot fetch metadata. No topics created?
  8. After health check restart it prints 200 {"broker":0,"status":"sync"}

Why is it still has unhealthy state? kafka_2.12-2.2.0