-
Notifications
You must be signed in to change notification settings - Fork 397
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
Producer core dump #49
Comments
It looks like it didn't properly create the topic. I can test this later, but just in case this helps, can you try using a different topic name? If that doesn't work, instead of using a string in that method, can you try using I don't normally recommend doing it that way as it interferes with graceful shutdown, but it may help isolate the bug. But like I said, I'll take a look at this later today otherwise :) |
Topic 'test' does exist. I also tried with another existent topic and a non-existent one, and get the same behavior. Switching to new Topic like this:
Gives
|
Sorry. Should be I'll update this to fail a little bit better than it does. It should throw when you try to produce to a failed topic, rather than core dump due to an assertion. |
I had an |
d'oh. Today is definitely a Monday. This is a breaking change. it should be:
I am going to add deprecation messages across the board for the old usage before release. |
Oh hm. Ok. Can you keep the callback parameter in there too? We promisify() the producer/consumer, and having a node-style callback is needed to get a promisified |
The deprecated version of the function will still honor the callback, even though it will just |
f9070c6 you can see how it will work here |
Hm ok. Does this mean it will no longer be possible to know if a specific message is ACKed by Kafka via callback? |
The callback wouldn't tell you if the message was If you require acks, you can use the delivery report as an authoritative indicator that your message has been written to the ISRs/lead broker. But acks do not block The library has the ability to take an I think generally, you need to trust librdkafka to retry until it gets the acks you specify you need for that message. |
Gracefully deprecated with #55 |
Am in the process of testing PR #42 as a fix for Issue #5, and ran into this:
node-rdkafka compiled at commit
62e53c22cafe93b9697fc9ff6fc0daa7c2670da2
.The text was updated successfully, but these errors were encountered: