-
Notifications
You must be signed in to change notification settings - Fork 915
Added error callback for propagating generic errors from librdkafka to app #15
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
Conversation
@@ -78,6 +78,9 @@ The Python bindings also provide some additional configuration properties: | |||
* ``default.topic.config``: value is a dict of topic-level configuration | |||
properties that are applied to all used topics for the instance. | |||
|
|||
* ``error_cb``: Callback for generic/global error events. This callback is served by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be including the argument lists for these callbacks?
@edenhill LGTM, but it has very limited testing, just that the setup works. For example, we don't actually evaluate that the expected set of arguments matches. Anything we can do after creating the producer/consumer in the unit tests to evaluate that invoking the callback actually works? Also, should we start tracking changelogs like we do for other projects (e.g. http://docs.confluent.io/3.0.0/schema-registry/docs/changelog.html). We normally update these just before release since its easier than updating with each patch, but given that clients need to release independently and we're doing a new tag + release for this asap.... |
Updated with unit test and callback arg documentation. |
if (self->u.Consumer.on_assign) | ||
Py_VISIT(self->u.Consumer.on_assign); | ||
if (self->u.Consumer.on_revoke) | ||
Py_VISIT(self->u.Consumer.on_revoke); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we missing visiting on_commit
?
@edenhill One last question, but LGTM otherwise. |
Wanted to ping on this pull request because isssue #14 is blocking our adoption of this library. Thanks, -Paul |
@paulcavallaro Should see some follow up soon, sorry for the delay. My last comment was right before @edenhill went on vacation, but he is returning imminently! |
@edenhill I'm seeing this:
|
@edenhill Ok, nm, must have had something stale somewhere. Reran in a virtualenv and its fine. |
That looks like you used an old confluent_kafka python module version without error_cb support (thus the fallthru to librdkafka) |
No description provided.