dajac commented on PR #16686:
URL: https://github.com/apache/kafka/pull/16686#issuecomment-2406678241

   I like Jason's suggestion. I think that we could take this idea further and 
also have the background thread send a CloseCompleted event to the foreground 
thread when it is done with its cleanup tasks.
   
   With this, the foreground thread could sent the close event to the 
background thread. The background thread handles it and triggers all the 
necessary steps, listener events, leave group, etc. In the meantime, the 
foreground thread could wait while processing event until it receives the 
CloseCompleted event.


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