lianetm opened a new pull request, #16569:
URL: https://github.com/apache/kafka/pull/16569

   Improvement to ensure that, even though the leave group request is sent out 
once, the leave group operation is considered complete only when it receives a 
response to the HB to leave (successful or failed). 
   
   The motivation is to avoid undesired interactions with operations triggered 
after the unsubscribe (ex. consumer close triggers a leave group operation, and 
shuts down the network thread when it completes, which before this PR could 
lead to responses to disconnected clients). 
   
   This is the same behaviour on close that the legacy consumer has (waits for 
leave responses).
   
   Note that this PR does not change the transitions of the state machine on 
leave group, only the completion of the leave group future. 
   


-- 
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