Skip to content

KAFKA-17747: [1/N] Add MetadataHash field to Consumer/Share/StreamGroupMetadataValue #19504

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

Merged
merged 3 commits into from
Apr 25, 2025

Conversation

FrankYang0529
Copy link
Member

@FrankYang0529 FrankYang0529 commented Apr 17, 2025

  • Add MetadataHash field to ConsumerGroupMetadataValue,
    ShareGroupMetadataValue, and StreamGroupMetadataValue.
  • Add metadataHash field to
    GroupCoordinatorRecordHelpers#newConsumerGroupEpochRecord,
    GroupCoordinatorRecordHelpers#newShareGroupEpochRecord, and
    StreamsCoordinatorRecordHelpers#newStreamsGroupEpochRecord.
  • Add deprecated message to ConsumerGroupPartitionMetadataKey and
    ConsumerGroupPartitionMetadataValue.
  • ShareGroupPartitionMetadataKey / ShareGroupPartitionMetadataValue /
    StreamGroupPartitionMetadataKey / StreamGroupPartitionMetadataValue will
    be removed in next PR.

Reviewers: Lucas Brutschy [email protected], David Jacot
[email protected]

@FrankYang0529 FrankYang0529 changed the title KAFKA-17747: Add MetadataHash field to Consumer/Share/StreamGroupMetadataValue KAFKA-17747: [1/N] Add MetadataHash field to Consumer/Share/StreamGroupMetadataValue Apr 17, 2025
@github-actions github-actions bot added the tools label Apr 17, 2025
@FrankYang0529 FrankYang0529 requested a review from dajac April 18, 2025 01:14
Copy link
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

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

This is looking good to me as a first step. We just need to remember to replace every single one of those zeros later on. I'll leave it to @dajac to merge.

@@ -300,12 +300,13 @@ public void testNewStreamsGroupEpochRecord() {
.setGroupId(GROUP_ID),
new ApiMessageAndVersion(
new StreamsGroupMetadataValue()
.setEpoch(42),
.setEpoch(42)
.setMetadataHash(42),
Copy link
Member

Choose a reason for hiding this comment

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

The only line where you put 42?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I followed epoch value to check we can get expected metadata hash with StreamsCoordinatorRecordHelpers.newStreamsGroupEpochRecord. It's like GroupCoordinatorRecordHelpersTest#testNewShareGroupEpochRecord.

Copy link
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

@dajac dajac merged commit 369cc56 into apache:trunk Apr 25, 2025
27 checks passed
@FrankYang0529 FrankYang0529 deleted the KAFKA-17747-1 branch April 25, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants