frankvicky commented on code in PR #24155:
URL: https://github.com/apache/kafka/pull/24155#discussion_r4529961110


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:
##########
@@ -675,6 +675,7 @@ protected CompletableFuture<Void> leaveGroup(boolean 
runCallbacks) {
     private void clearAssignmentAndLeaveGroup() {
         subscriptions.unsubscribe();
         clearAssignment();
+        notifyAssignmentChange(Collections.emptySet());

Review Comment:
   nit: Could we just swap the function order?
   
   ```suggestion
           clearAssignment();
           subscriptions.unsubscribe();
   ```
   Totally fine to keep the explicit call if you prefer it for clarity.



-- 
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