Skip to content
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

Access to watermark offsets API in python #31

Closed
aaronhays opened this issue Aug 12, 2016 · 1 comment
Closed

Access to watermark offsets API in python #31

aaronhays opened this issue Aug 12, 2016 · 1 comment

Comments

@aaronhays
Copy link

I just ran across confluentinc/librdkafka#503 after spending some time hacking in a solution using the available Python APIs that I'm too embarrassed to discuss publicly. It works fine for initial offset queries, but is not sufficient for keeping track of the current highwater mark during consumption. It would be great to get access to these APIs in Python. Is this on the roadmap anywhere?

I would prefer not to hack this in myself because I'm not quite sure how to correctly manage the memory for those int64_t * output parameters (low and high) between C and Python, as I'm not proficient with the Python C-API. I would probably adapt the interface to return a tuple of low and high and raise an exception in the case of error, but I don't know if that is the best way to proceed.

@edenhill
Copy link
Contributor

Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants