-
Notifications
You must be signed in to change notification settings - Fork 915
After calling close, consumers issue periodic metadata requests #30
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
Comments
Your analysis is correct. Now, there's probably no real use to close the consumer and then do something else on the same handle, so calling rd_kafka_destroy() from close() in the Python API sounds like a good idea. |
Destroy rd_kafka_t handle on consumer.close() (#30)
Fixed on master. |
If you create a consumer, connect, read some data, and then close but don't destroy every reference to the consumer, it will continue issuing metadata requests every five minutes.
I'm assuming this is because you are calling
rd_kafka_consumer_close
in the pythonclose()
method, but not callingrd_kafka_destroy
until the consumer object is deallocated. It seems like once you callclose()
, theConsumer
instance cannot be used for anything - is there a reason not to callrd_kafka_destroy
inclose()
?The text was updated successfully, but these errors were encountered: