Is there a way for our producer to fail quickly if not available?

No. Client will just try to re-connect internally. They don't rise any error if they disconnect.



On 8/22/24 5:45 AM, Keith Brown wrote:
Sometimes out is unavailable.  Our producer gives this error

[kafka-producer-network-thread | producer-1] WARN
org.apache.kafka.clients.NetworkClient - [Producer
clientId=producer-1] Bootstrap broker 127.0.0.1:9091 (id: -1 rack:
null) disconnected

[main] INFO org.apache.kafka.clients.producer.KafkaProducer -
[Producer clientId=producer-1] Closing the Kafka producer with
timeoutMillis = 9223372036854775807 ms.

Is there a way for our producer to fail quickly if not available?

Reply via email to