-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
bug in CommitRecords? #64
Comments
as you see lag always 1 and after i'm restart test last record always processed. |
i have such issue in other kafka driver (segmentio/kafka-go) when commit current record offset and not next offset. can you check this? or i have may be error in my code (but i dont think so) |
@twmb i think you need to https://github.com/twmb/franz-go/blob/v0.10.1/pkg/kgo/consumer_group.go#L1687 add +1 to offset from record. in this case you don't have lag with 1 message and not double process last message each time |
i'm check my proposed solution and after r.Offset + 1 in 1687 lag goes to 0 and messages after restart not double processed |
fix #65 |
Thank you, very obvious bug, great catch! |
https://pkg.go.dev/github.com/twmb/franz-go/pkg/kgo#Client.CommitRecords
The text was updated successfully, but these errors were encountered: