-
Notifications
You must be signed in to change notification settings - Fork 46
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
Async consumer & manual offset control #38
Comments
@vielmath I wonder if the changes I made in the |
@vielmath I released 0.1.23, can you verify with this version and see if you are still running into the same issue? |
@vielmath the async facade has been deprecated, sorry about this |
The referenced line has sinced changed, I believe this is where the exception was raised: Line 108 in fdcb203
I've not encountered this issue, a good test case would help BTW. Still, my guess is it's related to the control thread calling This makes me wonder why would we need a second thread for control? I imagine this was because of a consumer blocking indefinitely. However KIP-266: Fix consumer indefinite blocking behavior was released in 2.1, meaning most if not all consumer operations can now timeout, including commit. So I wonder now, do we still need that second control thread which only purpose is to call @pyr @vielmath |
I had some trouble trying to manually commit offsets.
After initializing a consumer and registering it to a topic I start a simple loop like this one:
A few messages are processed and then it stops processing. The loop seems dead.
After a bit of investigation I found that it fails here https://github.com/pyr/kinsky/blob/master/src/kinsky/async.clj#L108
The commit operations are so close that a wake-up exception is thrown while processing a commit operation. There is no try catch here so the loop dies...
Even with a try catch, poller-ctl only processes one event so if multiple operations are submitted "simultaneously" only the first will be applied.
The text was updated successfully, but these errors were encountered: