-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
KAFKA-6606; Ensure consumer awaits auto-commit interval after sending… #4641
Conversation
cc @huxihx |
time.sleep(autoCommitIntervalMs / 2); | ||
coordinator.poll(time.milliseconds(), Long.MAX_VALUE); | ||
assertEquals(1, client.inFlightRequestCount()); | ||
client.respond(new MockClient.RequestMatcher() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Maybe we can consolidate this logic into a function as well? E.g. "respondSentRequest" etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit comment, otherwise LGTM!
One of the builds evidently hung in |
Sounds good! |
#4641) We need to reset the auto-commit deadline after sending the offset commit request so that we do not resend it while the request is still inflight. Added unit tests ensuring this behavior and proper backoff in the case of a failure. Reviewers: Guozhang Wang <wangguoz@gmail.com>
We need to reset the auto-commit deadline after sending the offset commit request so that we do not resend it while the request is still inflight.
Added unit tests ensuring this behavior and proper backoff in the case of a failure.
Committer Checklist (excluded from commit message)