-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seg fault with multi brokers #224
Comments
Can you reproduce this by providing the semi list of brokers to I will add support (aliasing) for the new producer configs. |
Could you also try running your program inside gdb?
|
I'm sorry for late response. #0 0x00007fffe4071ff0 in ?? () The GDB trace is shown on the above. Regards, |
Looks like your event/log callback is crashing or erroneously set up. |
Yes, I did. On Header file:
on the function in CPP: ex_event_cb = new ExampleProducerEventCb(); /*
/* Set delivery report callback */ Did I do something wrong? |
What does your ExampleProducerEventCb class look like? |
I copied from the example.
|
Maybe your instance of ex_event_cb is freed/deleted? |
Try running your program with valgrind: It should report what the problem is |
I'm sorry for late response. Thank you so much for your help! |
Glad you found it! |
Hello,
I'm using rdkafka library. I got seg fault when I set multi brokers.
FYI, seg fault didn't provide any traces and I generated multi broker topic using the below command:
bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic mytopic --partitions 1 -replication-factor 3
My code to open connection for producer is on the below (broker list is provided from parameters with the form "IP:PORT,IP2:PORT2,IP3:PORT3") :
void KafkaRdHandler::openConnection(std::string topicName)
{
if (conf->set("message.send.max.retries", "0", errstr) !=
RdKafka::Conf::CONF_OK) {
logWarn(mName + " : " + errstr,0);
}
}
Is there something I missed? It works well with single broker.
In addition to the above question, does rdkafka not support "bootstrap.server" and "block.on.buffer.full" in new producer configs (http://kafka.apache.org/documentation.html#newproducerconfigs)?
Thank you in advance.
Regards,
K
The text was updated successfully, but these errors were encountered: