Description
Hi,
My setup is as follows, I have two instances of Kafka running in docker containers, a producer and a consumer script.
When I kill the first broker and restart the producer / consumer script they timeout and "ready" event is never emitted.
{"message":"Local: Timed out","code":-185,"errno":-185,"origin":"kafka"}
The issue is that when calling rd_kafka_metadata
, there is a moment when both brokers' state
is NOT up and the function that decides which broker to talk to, rd_kafka_broker_any
, returns the first broker, rd_kafka_metadata
returns a timeout error (because that broker is down).
In the JS code's connect
method we return and never emit "ready" event.
This error seems to be fixed on librdkafka's side in the current master version as rd_kafka_metadata
's function was partly rewritten.
Did you observer this behavior during your tests or am I doing something wrong?