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)