-
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
It is crashed ,when use method of the producer in the thread #2947
Comments
Please fill out the Checklist (by editing your comment above). Also try to reproduce this with valgrind or ASAN or within GDB so that you can provide a backtrace. |
Thank you. Are you using io_event_enable() and/or custom RdKafka::Queue forwarding? Can you reproduce this with a librdkafka build without optimization ( |
Please also use the latest version of librdkafka, v1.4.4, or the master branch. |
Now that I have solved this problem, I just need to replace the librdkafka++.so librdkafka.so library file |
Thank you for your information. but I have a problem now. I want to send a lot of messages to kafka, but sometimes, for example, the partition is not created successfully, or the topic is not created, so some messages can not be sent to kafka server successfully. So I want to count the number of successful and failed messages sent, of course, in an asynchronous way, I use the dr_cb method of the callback function DeliveryReportCb. both success and failure of message sending will enter this callback, but some messages do not enter. I guess it should still be on broker or cache queue, so my statistics are always inaccurate
|
I have tried to cache every message sent, and assign a status (success or failure). When the message arrives in the callback function, set the status of the message, and then count the status of the message in the cache. However, my statistics are real-time, and some messages may not arrive or be blocked in the queue, but they are sent again later. |
You should probably raise a new issue for your new question. Otherwise, the issue title is incorrect, which is unhelpful to other people with similar issues. |
ok ,I know |
hi edenhil:
I want to clear the messages of the send queue, so I used producer's purge method, but A crash occurred during execution,this is my code:
librdkafka version: librdkafka-1.2.1
Apache Kafka version; kafka_2.11-1.0.0
librdkafka client configuration:
Operating system: CentOS Linux release 7.2.1511 (Core)
gdb backtrace:
The text was updated successfully, but these errors were encountered: