Skip to content

MINOR: correctly parse version OffsetCommitResponse version < 3#6698

Closed
lbradstreet wants to merge 1 commit intoapache:trunkfrom
lbradstreet:offset-commit-response-throttle-field
Closed

MINOR: correctly parse version OffsetCommitResponse version < 3#6698
lbradstreet wants to merge 1 commit intoapache:trunkfrom
lbradstreet:offset-commit-response-throttle-field

Conversation

@lbradstreet
Copy link
Copy Markdown
Contributor

KAFKA-7903: automatically generate OffsetCommitRequest (#6583) introduced a change that cause consumer breakage when OffsetCommitResponse versions < 3 are parsed, as they do not include a throttle_time_ms field. This PR fixes the parsing by supplying the correct version to the OffsetCommitResponse constructor in AbstractResponse.parseResponse.

I have tested this change against many of the compatibility system tests, and it has fixed all the failures that I have tested thus far.

Copy link
Copy Markdown
Contributor

@gwenshap gwenshap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch. LGTM and merging :)

@abbccdda
Copy link
Copy Markdown

abbccdda commented May 8, 2019

Thanks for the PR! LGTM

@gwenshap gwenshap closed this in 8308829 May 8, 2019
@lbradstreet lbradstreet deleted the offset-commit-response-throttle-field branch May 8, 2019 05:55
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
KAFKA-7903: automatically generate OffsetCommitRequest (apache#6583) introduced a change that cause consumer breakage when OffsetCommitResponse versions < 3 are parsed, as they do not include a throttle_time_ms field. This PR fixes the parsing by supplying the correct version to the OffsetCommitResponse constructor in AbstractResponse.parseResponse.

I have tested this change against many of the compatibility system tests, and it has fixed all the failures that I have tested thus far.

Author: Lucas Bradstreet <lucas@confluent.io>

Reviewers: Gwen Shapira, Boyang Chen

Closes apache#6698 from lbradstreet/offset-commit-response-throttle-field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants