You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Sean Quah (Jira)" <ji...@apache.org> on 2026/10/23 14:27:00 UTC

[jira] [Resolved] (KAFKA-21318) invertedTargetAssignment invalid for share groups

     [ https://issues.apache.org/jira/browse/KAFKA-21318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Quah resolved KAFKA-21318.
-------------------------------
    Resolution: Fixed

> invertedTargetAssignment invalid for share groups
> -------------------------------------------------
>
>                 Key: KAFKA-21318
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21318
>             Project: Kafka
>          Issue Type: Bug
>          Components: group-coordinator
>            Reporter: Sean Quah
>            Assignee: Sean Quah
>            Priority: Minor
>
> In the group coordinator, we maintain `invertedTargetAssignment` for each group as a map of partitions to owning member ids. Then in the assignor `GroupSpec`, we use it to answer `isPartitionAssigned` queries.
> Share groups can assign the same partition to multiple members, which breaks tracking of `invertedTargetAssignment`. eg. When a share group member leaves, its assigned partitions can be cleared in `invertedTargetAssignment` and then `isPartitionAssigned` will return `false` for those partitions even when other members still have them assigned.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)