-
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
using msg_opaque in Producer::producer #115
Comments
Hi, so what you do is:
Does that answer your question? Note that you are allowed to call |
So for doing it asynchronous I need to use another thread that does the On Fri, May 9, 2014 at 2:15 PM, Magnus Edenhill [email protected]:
|
It is really up to your program design. For programs that expect a steady flow of produce() calls I usually just put a poll() right after the produce(). That poll() call will not serve the deliveryreports of the message just produced, but likely from previous produce() calls. E.g.:
|
Hello Magnus, If I call the producer with a msg_opaque and I call Message::msg_opaque() Chris On Fri, May 9, 2014 at 2:33 PM, Magnus Edenhill [email protected]:
|
It seems that I always get the same pointer in the callback On Mon, May 12, 2014 at 2:33 PM, Chris Herssens [email protected]:
|
Thanks for spotting this bug, it has now been fixed in master branch. Thank you |
it works. On Mon, May 12, 2014 at 3:06 PM, Magnus Edenhill
|
Great! |
Hallo,
Is it possible to explain how I can use the msg_opague in Producer::procuder to see if a message is send to kafka when request.required.acks=1 ?
For each message I have a callback function and if the message is delivered to kafka I want to call this callback function. I suppose that I have to use DeliveryReportCb and in RdKafka::DeliveryReportCb::dr_cb I have to call the callback function for that message.
Regards
The text was updated successfully, but these errors were encountered: