lianetm commented on code in PR #23714:
URL: https://github.com/apache/kafka/pull/23714#discussion_r4515844884


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractHeartbeatRequestManager.java:
##########
@@ -184,6 +184,11 @@ public NetworkClientDelegate.PollResult poll(long 
currentTimeMs) {
             return new 
NetworkClientDelegate.PollResult(heartbeatRequestState.heartbeatIntervalMs(), 
Collections.singletonList(leaveHeartbeat));
         }
 
+        if (membershipManager().state() == MemberState.LEAVING && 
shouldSkipLeaveHeartbeat()) {

Review Comment:
   great, so could we please rename this PR , so it's clear it's fixing 
REMAIN_IN_GROUP for dynamic members (poll timeout or not). It's fixing 
KAFKA-21220 and also https://issues.apache.org/jira/browse/KAFKA-20516 
   Btw, that one has an integration test that I wonder if it's helpful to add 
here?



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