Skip to content

HOTFIX: Fix GroupMetadataManager#completeAlterShareGroupOffsets to use InitMapValue in addInitializingTopicsRecords#19792

Merged
apoorvmittal10 merged 4 commits into
apache:trunkfrom
mingyen066:HOTFIX-Fix-GroupMetadataManager-type
May 23, 2025
Merged

HOTFIX: Fix GroupMetadataManager#completeAlterShareGroupOffsets to use InitMapValue in addInitializingTopicsRecords#19792
apoorvmittal10 merged 4 commits into
apache:trunkfrom
mingyen066:HOTFIX-Fix-GroupMetadataManager-type

Conversation

@mingyen066

@mingyen066 mingyen066 commented May 23, 2025

Copy link
Copy Markdown
Collaborator

https://github.com/apache/kafka/pull/19781/files#diff-00f0f81cf13e66781777d94f7d2e68a581663385c37e98792507f2294c91bb09L2746-R2745
changes the addInitializingTopicsRecords signature while
https://github.com/apache/kafka/pull/18929/files#r2104172356 didn't make
adjustment accordingly.

Fix GroupMetadataManager#completeAlterShareGroupOffsets to use
InitMapValue in initializingTopics so that
addInitializingTopicsRecords can accept it.

@github-actions github-actions Bot added triage PRs from the community small Small PRs labels May 23, 2025
@mingyen066 mingyen066 marked this pull request as ready for review May 23, 2025 09:18
@mingyen066 mingyen066 changed the title HOTFIX: Fix GroupMetadataManager to use InitMapValue in addInitializingTopicsRecords HOTFIX: Fix GroupMetadataManager#completeAlterShareGroupOffsets to use InitMapValue in addInitializingTopicsRecords May 23, 2025
.map(AlterShareGroupOffsetsRequestData.AlterShareGroupOffsetsRequestPartition::partitionIndex)
.filter(existingPartitions::contains)
.collect(Collectors.toSet()));
initializingTopics.put(topicId, new InitMapValue(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not required:
can call attachInitValues on the map.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The current version is better because initializingTopics already contains complete information (ID and name), and attachInitValue would create an additional map. WDYT?

@smjn

smjn commented May 23, 2025

Copy link
Copy Markdown
Collaborator

#19794

@apoorvmittal10 apoorvmittal10 merged commit e107e69 into apache:trunk May 23, 2025
31 of 32 checks passed
@apoorvmittal10

Copy link
Copy Markdown
Contributor

@smjn I have merged the PR for fixing the build. We can discuss the right approach in your PR as there is this open question on the comment

@github-actions github-actions Bot removed the triage PRs from the community label May 24, 2025
@mingyen066 mingyen066 deleted the HOTFIX-Fix-GroupMetadataManager-type branch February 13, 2026 13:55
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.