kirktrue opened a new pull request, #16686: URL: https://github.com/apache/kafka/pull/16686
The consumer should attempt to leave the group cleanly upon `close()`, regardless of a) the timeout, b) interrupts. If the user interrupted the current thread, upon `close()`, note the interruption, clear the flag, proceed with the close logic, and then throw an `InterruptException` at the end of `close()`. If the user invokes `close()` with a low timeout, make sure to process the background events even if the `UnsubscribeEvent` itself timed out. Those background events are needed to signal the 'leave group' action in the background thread. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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