kafkaConsumer.listTopics health check used

When I use the kafkaConsumer.listTopics for kafka consumer health check with 5 broker in kafka cluster.
If service is connected to one of the broker and health check was up, suddenly if that broker get down.then health checkis getting failed with Result is already complete: failed.
Please let me know any other method I can use for kafka consumer health check and its should be atleast 3 brokers up out of 5