lianetm commented on code in PR #14873: URL: https://github.com/apache/kafka/pull/14873#discussion_r1420576356
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/MembershipManagerImpl.java: ########## @@ -587,6 +599,18 @@ public boolean shouldSkipHeartbeat() { return state == MemberState.UNSUBSCRIBED || state == MemberState.FATAL; } + /** + * {@inheritDoc} + */ + @Override + public void transitionToStaled() { + transitionTo(MemberState.PREPARE_LEAVING); + memberEpoch = ConsumerGroupHeartbeatRequest.LEAVE_GROUP_MEMBER_EPOCH; + transitionTo(MemberState.LEAVING); Review Comment: Similar, do we need this? We use this LEAVING state to signal the HB manager that it should send a HB now, but in this staled member case, that last HB is sent based on the check that the poll timer expired (not based on any state that should HB now) -- 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