Skip to content
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

fix: correct bugs in DescribeGroupsResponse #2111

Merged
merged 1 commit into from
Jan 13, 2022
Merged

Conversation

dnwe
Copy link
Collaborator

@dnwe dnwe commented Jan 13, 2022

  • support decoding V0 and V1 "ConsumerProtocolSubscription" types in the
    DescribeGroupsResponse member metadata (i.e., the new "OwnedPartition"
    values that may be included by a KIP-429 consumer)
  • add workaround for the legacy bsm/sarama-cluster client which
    incorrectly set V1 in its JoinGroup request, but doesn't include the
    new V1+ fields!
    https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L644-L648
  • also guard GetMemberAssignment and GetMemberMetadata from panic'ing
    when the fields are empty, which they will be in certain scenarios
    such as non-stable groups or clients without any assigned
    topicpartitions

- support decoding V0 and V1 "ConsumerProtocolSubscription" types in the
  DescribeGroupsResponse member metadata (i.e., the new "OwnedPartition"
  values that may be included by a KIP-429 consumer)
- add workaround for the legacy bsm/sarama-cluster client which
  incorrectly set V1 in its JoinGroup request, but doesn't include the
  new V1+ fields!
  https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L644-L648
- also guard GetMemberAssignment and GetMemberMetadata from panic'ing
  when the fields are empty, which they will be in certain scenarios
  such as non-stable groups or clients without any assigned
  topicpartitions
@dnwe dnwe requested a review from bai as a code owner January 13, 2022 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants