m1a2st commented on code in PR #21579:
URL: https://github.com/apache/kafka/pull/21579#discussion_r3292779944


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:
##########
@@ -210,12 +211,20 @@ public int hashCode() {
 
     /**
      * If the member is currently leaving the group after a call to {@link 
#leaveGroup()} or
-     * {@link #leaveGroupOnClose()}, this will have a future that will 
complete when the ongoing leave operation
-     * completes (callbacks executed and heartbeat request to leave is sent 
out). This will be empty if the
-     * member is not leaving.
+     * {@link #leaveGroupOnClose(CloseOptions.GroupMembershipOperation)}, this 
will have a future that will 
+     * complete when the ongoing leave operation completes (callbacks executed 
and heartbeat request to leave 
+     * is sent out). This will be empty if the member is not leaving.
      */
     private Optional<CompletableFuture<Void>> leaveGroupInProgress = 
Optional.empty();
 
+    /**
+     * The operation the member will perform on leaving the group. Remains 
{@code DEFAULT} until the
+     * member is closing.
+     *
+     * @see CloseOptions.GroupMembershipOperation
+     */
+    private CloseOptions.GroupMembershipOperation leaveGroupOperation = 
CloseOptions.GroupMembershipOperation.DEFAULT;

Review Comment:
   Good catch, we should reset to `DEFAULT` for defense



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