You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2025/06/12 15:00:00 UTC

[jira] [Commented] (KAFKA-18117) Support topic IDs in consumer SubscriptionState

    [ https://issues.apache.org/jira/browse/KAFKA-18117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17966262#comment-17966262 ] 

Lianet Magrans commented on KAFKA-18117:
----------------------------------------

Merged to trunk and cherry-picked to 4.1 https://github.com/apache/kafka/commit/1efbbb8ec16b28e37457f5976a4d1c6ca820c3db 

> Support topic IDs in consumer SubscriptionState
> -----------------------------------------------
>
>                 Key: KAFKA-18117
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18117
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer
>            Reporter: Lianet Magrans
>            Assignee: Lianet Magrans
>            Priority: Major
>              Labels: kip-848-client-support
>             Fix For: 4.1.0
>
>
> Include support for topicIds in subscription state to properly align with the new protocol assignments that contain topic IDs only (no name). This will allow the consumer to request metadata for assigned topic IDs only (not all topics). 
> Note that without this (current state), the consumer requests metadata for all topic IDs when subscribed to the new RE2J regex (because the SubscriptionState doesn't know about topic IDs, only topic names. The assigned topic IDs live only within the MembershipMgr that handled the assignment).
> [https://github.com/apache/kafka/blob/b92cd9d23647112b9a21fe0475605e0d5aca477a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerMetadata.java#L71-L72]
> This should be fixed with this task, to ensure we only request metadata for the topic IDs received in the assignment.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)