Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16528

Reset member heartbeat interval when request sent

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lianetm Lianet Magrans
              lianetm Lianet Magrans
              Bruno Cadonna Bruno Cadonna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: