lucasbru opened a new pull request, #15440:
URL: https://github.com/apache/kafka/pull/15440

   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.
   
   This change makes sure to check 
SubscriptionState.hasAutoAssignedPartitions() so that assignFromSubscribed is 
going to be permitted.
   
   Also, a minor refactoring to make clearing the subscription a bit easier to 
follow in MembershipManagerImpl.
   
   Testing via new unit test.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to