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

New consumer leave group flow may not send leave request and clear epoch

    XMLWordPrintableJSON

Details

    Description

      When leaving a group (due to close or unsubscribe), the consumer needs to run revocation callbacks. In the case where this callbacks fail (user error or timeout due to long running callback), the consumer should still clear its epoch and send a leave group heartbeat. This is currently the case for unsubscribe but not for close, so should be fixed.

      Also note that clearing the epoch even if the callback fails is needed to ensure that the last epoch is not used anymore in offset commit requests after the member leaves the group (ex. when auto-commit enabled).  

      Also note that this should still be applied (clear epoch) if a member that is running the callbacks to leave get fenced. It does not need to send the leave group request but should take all leaving action to leave the client in a consistent state (avoiding auto-commits that could happen while it leaves, that would use the fenced epoch) 

      Attachments

        Issue Links

          Activity

            People

              lianetm Lianet Magrans
              lianetm Lianet Magrans
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: