librdkafka
librdkafka copied to clipboard
rd_kafka_new call returns after 2 minutes and 30 seconds
While investigating an issue where our Kafka producer failed to initialize on a specific machine, we discovered something interesting. Although the root problem is likely with the machine itself, I wanted to share what we found during our investigation. The following call:
producer = RdKafka::Producer::create(conf.get(), errstr);
takes 2 minutes and 30 seconds to return. Interestingly, a connection checking program using Golang's Sarama library to create a producer and fetch metadata works perfectly normal on the same machine. Could you suggest what might be causing this 2 minutes and 30 seconds delay in the create code?
librdkafka v 1.8.2-POST2