Lianet Magrans created KAFKA-16528:
--------------------------------------
Summary: Reset member heartbeat interval when request sent
Key: KAFKA-16528
URL: https://issues.apache.org/jira/browse/KAFKA-16528
Project: Kafka
Issue Type: Task
Components: clients, consumer
Reporter: Lianet Magrans
Assignee: Lianet Magrans
Fix For: 3.8.0
Member should reset the heartbeat timer when the request is sent, rather than
when a response is received. This aims to ensure that we don't add-up to
interval any delay there might be in a response. With this, we better respect
the contract of members sending HB on the interval to remain in the group, and
avoid potential unwanted rebalances.
Note that there is already a logic in place to avoid sending a request if a
response hasn't been received. So that will ensure that, even with the reset of
the interval on the send, the next HB will only be sent as when the response
is received. (Will be sent out on the next poll of the HB manager, and
respecting the minimal backoff for sending consecutive requests). This will btw
be consistent with how the interval timing & in-flights is handled for
auto-commits.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)