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

Kirk True updated KAFKA-16261:
------------------------------
    Component/s: consumer

> MembershipManagerImpl.updateSubscription fails if already empty subscription
> ----------------------------------------------------------------------------
>
>                 Key: KAFKA-16261
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16261
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer
>            Reporter: Andrew Schofield
>            Assignee: Lianet Magrans
>            Priority: Minor
>              Labels: consumer-threading-refactor, kip-848-client-support
>             Fix For: 3.8.0
>
>
> The internal SubscriptionState object keeps track of whether the assignment 
> is user-assigned, or auto-assigned. If there are no assigned partitions, the 
> assignment resets to NONE. If you call SubscriptionState.assignFromSubscribed 
> in this state it fails.
> The easiest thing is perhaps to check 
> SubscriptionState.hasAutoAssignedPartitions() to make sure that 
> assignFromSubscribed is going to be permitted.



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

Reply via email to