-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
MINOR: Handle JoinGroupResponseData.protocolName backward compatibility in JoinGroupResponse #12864
MINOR: Handle JoinGroupResponseData.protocolName backward compatibility in JoinGroupResponse #12864
Conversation
…ty in JoinGroupResponse
// All versions prior to version 7 do not support nullable | ||
// string for the protocol name. Empty string should be used. | ||
if (version < 7 && data.protocolName() == null) { | ||
data.setProtocolName(""); | ||
} |
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.
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.
originally reviewed the change on #12845
lgtm
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.
Thanks, LGTM
…ty in JoinGroupResponse (apache#12864) This is a small refactor extracted from apache#12845. It basically moves the logic to handle the backward compatibility of `JoinGroupResponseData.protocolName` from `KafkaApis` to `JoinGroupResponse`. The patch adds a new unit test for `JoinGroupResponse` and relies on existing tests as well. Reviewers: Justine Olshan <jolshan@confluent.io>, Jason Gustafson <jason@confluent.io>
This is a small refactor extracted from #12845. It basically moves the logic to handle the backward compatibility of
JoinGroupResponseData.protocolName
fromKafkaApis
toJoinGroupResponse
.The patch adds a new unit test for
JoinGroupResponse
and relies on existing tests as well.Committer Checklist (excluded from commit message)