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

   Introduce call to `onPartitionsLost` callback to release assignment when a 
consumer pro-actively leaves the group due to poll timer expired. 
   
   When the poll timer expires, the member sends a leave group request (reusing 
same existing LEAVING state and logic), and then transitions to STALE to 
release it assignment and wait for the poll timer reset. Once both conditions 
are met, the consumer transitions out of the STALE state to rejoin the group. 
Note that while on this STALE state, the member is not part of the group so it 
does not send heartbeats.
   
   This PR also includes the fix to ensure that while STALE or in any other 
state where the member is not in the group, heartbeat responses that may be 
received are ignored. 


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