kirktrue commented on code in PR #16686:
URL: https://github.com/apache/kafka/pull/16686#discussion_r1835190462


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:
##########
@@ -549,7 +576,7 @@ public CompletableFuture<Void> leaveGroup() {
         CompletableFuture<Void> leaveResult = new CompletableFuture<>();
         leaveGroupInProgress = Optional.of(leaveResult);
 
-        CompletableFuture<Void> callbackResult = signalMemberLeavingGroup();
+        CompletableFuture<Void> callbackResult = 
signalMemberLeavingGroup(isClosing);

Review Comment:
   Added `clearAssignmentAndSendLeave()` method as suggested.



##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:
##########
@@ -616,6 +644,15 @@ void notifyEpochChange(Optional<Integer> epoch) {
         stateUpdatesListeners.forEach(stateListener -> 
stateListener.onMemberEpochUpdated(epoch, memberId));
     }
 
+    /**
+     * Invokes the {@link MemberStateListener#onGroupAssignmentUpdated(Set)} 
callback for each listener when the
+     * set of assigned partitions changes. This includes on assignment 
changes, unsubscribing, and when leaving

Review Comment:
   Fixed.



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