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


##########
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:
   @lianetm 
   Thanks for your comments! Both make sense to me 👍 
   - I've change the name of this PR and fill simple comments to KAFKA-21220 
ticket!
   - The test case from KAFKA-20516 is added to integration test and it works 
well.
   
   When you get a chance, please take another look! 🙇‍♂️ 



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