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

One of the _retrieve_offsets calls is missing the timeout_ms variable - this leads to an infinite while loop #2416

Open
hntirgeam opened this issue Nov 21, 2023 · 0 comments

Comments

@hntirgeam
Copy link

Hi.

When trying to get max offset of the topic like so:

consumer.assign(partitions)
consumer.seek_to_end(*partitions)
max_offset = consumer.position(partitions[0])

consumer.position(partitions[0]) call get gets stuck in endless while loop due to the missing timeout_ms variable passed to the _retrieve_offsets method call.

I can't tell for sure if this was done on purpose or just omitted - this variable is passed to other calls to this method.

I think timeout_ms should be passed to _reset_offset so that it can then be passed to _retrieve_offsets.

offsets = self._retrieve_offsets({partition: timestamp})

image

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