-
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
partitioner_cb documentation? #397
Comments
I am new to Kafka so I could be wrong with my implementation. For me, the It will be helpful to know what the issue is and how we can resolve it. |
Ran into this as well, partly documented, but cannot get |
bump @webmakersteve I just ran into this... been trolling the source of I don't think ref } else {
// First parameter is a topic OBJECT
Topic* topic = ObjectWrap::Unwrap<Topic>(info[0].As<v8::Object>());
// Unwrap it and turn it into an RdKafka::Topic*
Baton topic_baton = topic->toRDKafkaTopic(producer); is ever reached because Which doesn't call ref Baton Topic::toRDKafkaTopic(Connection* handle) {
if (m_config) {
return handle->CreateTopic(m_topic_name, m_config); Which doesn't call ref topic = RdKafka::Topic::create(m_client, topic_name, conf, errstr); Which would have called ref RdKafka::Topic *RdKafka::Topic::create (Handle *base,
const std::string &topic_str,
Conf *conf,
std::string &errstr) { which ultimately calls |
@webmakersteve does this make sense to you? How do you suggest remediating this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Is there an answer here? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Are there any updates? For me, the |
Any update on this? We are having same issue trying to use |
Encountering the same issue here as-well -- |
I happened to be looking at something else in github and had my attention pulled to this issue I opened 6.5 years ago. I started reacquainting myself with it and for those who find themselves here, I believe but don't guarantee the current state of this to be as follows:
Bottom-line, I don't see this "issue" being resolved for you/us soon or ever and suggest you evaluate your particular needs and decide which of the three options above - fork, PR or an additional layer/abstraction - serves you best. As I said, I did a cursory dive in arriving at the above so please do correct me where I'm wrong. cc: @edenhill as you are, to my knowledge, best positioned to correct my mistakes |
Documentation on this feature is really thin, so much so that it's not clear to me whether it's actually supported. If it is, my attempts to infer the callback signature from the C code are failing so it'd be useful if there was even a small blurb or example that would describe how to use this.
Currently, all our attempts to use "partitioner_cb" have produced the following output:
Unhandled rejection (<{"name":"our_client_id...>, no stack trace)
The text was updated successfully, but these errors were encountered: