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-3960 - Committed offset not set after first assign #1629
Conversation
cc @hachikuji |
Could now figure out why build failed. Any advise? |
Nice find @13h3r. Would you mind adding a test case? The jenkins failure seems unrelated. |
Done |
Anything else I have to do to get this merged? |
@13h3r, I think it would be nice to have a test that exercised the consumer to complement the |
@ijuma Thanks for the advise. Consumer test implemented. |
int sessionTimeoutMs = 3000; | ||
int heartbeatIntervalMs = 2000; | ||
|
||
// adjust auto commit interval lower than heartbeat so we don't need to deal with |
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: this comment is not relevant for this test case
Minor comment, but otherwise LGTM. |
long offset1 = 10000; | ||
long offset2 = 20000; | ||
|
||
|
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.
I don't think we need these two empty lines.
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.
In fact, I think I'd remove all empty lines all the way to autoCommitIntervalMs
as I don't think they add much.
Is it possible to rerun tests? Everything is fine on my laptop |
I ran the tests locally and they pass. Thanks for the PR, LGTM. Merged to trunk and 0.10.0 branches. |
Author: Alexey Romanchuk <al.romanchuk@2gis.ru> Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk> Closes #1629 from 13h3r/kafka-3960 (cherry picked from commit 932bb84) Signed-off-by: Ismael Juma <ismael@juma.me.uk>
Author: Alexey Romanchuk <al.romanchuk@2gis.ru> Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk> Closes apache#1629 from 13h3r/kafka-3960 (cherry picked from commit 932bb84) Signed-off-by: Ismael Juma <ismael@juma.me.uk>
No description provided.