-
Notifications
You must be signed in to change notification settings - Fork 792
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
Rebalances can lead to wrong lag being reported #1308
Comments
An alternative solution would be that if the offset goes back in time (because another consumer) the consumer that is assigned to it receives that event again, so it has the chance to reprocess and acknowledge it. That one seems better to me because it should be race-condition free. |
Ok, I believe I found the culprit and the solution could come from 2 places. There's 2 problems the way I see it: |
…at are not valid anymore.
…at are not valid anymore.
Describe the bug
When commits are not immediate and/or some events can have a relatively high processing time and topics substain a low traffic, it can lead to lag being reported even if events were processed and committed.
Kafka Version
3.6.x
To Reproduce
This test reprocuces the behavior:
https://github.com/nachogiljaldo/kafka-go/blob/do_not_commit_offset_of_not_owned_partitions/reader_test.go#L1184
The situation is:
Expected Behavior
There are 2 things I would expect:
Observed Behavior
We do not get the missing message which leads to a fake lag when the traffic has little traffic.
The text was updated successfully, but these errors were encountered: