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


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/HeartbeatRequestManager.java:
##########
@@ -149,27 +192,36 @@ public HeartbeatRequestManager(
      */
     @Override
     public NetworkClientDelegate.PollResult poll(long currentTimeMs) {
-        if (!coordinatorRequestManager.coordinator().isPresent() || 
!membershipManager.shouldSendHeartbeat())
+        if (!coordinatorRequestManager.coordinator().isPresent() || 
membershipManager.shouldSkipHeartbeat())
             return NetworkClientDelegate.PollResult.EMPTY;
 
-        // TODO: We will need to send a heartbeat response after partitions 
being revoke. This needs to be
-        //  implemented either with or after the partition reconciliation 
logic.
-        if (!heartbeatRequestState.canSendRequest(currentTimeMs))
+        boolean heartbeatNow = membershipManager.shouldHeartbeatNow() && 
!heartbeatRequestState.requestInFlight();

Review Comment:
   Yes, as we discussed for the states that would send heartbeat without 
waiting for the interval (sending ack for an assignment and leave group 
requests basically)



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to