You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Andrew Schofield (Jira)" <ji...@apache.org> on 2024/02/15 18:10:00 UTC
[jira] [Created] (KAFKA-16261) MembershipManagerImpl.updateSubscription fails if already empty subscription
Andrew Schofield created KAFKA-16261:
----------------------------------------
Summary: 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
Reporter: Andrew Schofield
Assignee: Lianet Magrans
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)