philipnee commented on code in PR #14842: URL: https://github.com/apache/kafka/pull/14842#discussion_r1405771339
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkThread.java: ########## @@ -254,8 +255,9 @@ private void closeInternal(final Duration timeout) { void cleanup() { log.trace("Closing the consumer network thread"); Timer timer = time.timer(closeTimeout); - maybeAutoCommitAndLeaveGroup(timer); + maybeAutocommitOnClose(timer); Review Comment: After reviewing the ConsumerCoordinator, I split the original method into two functions: We should try to send an autocommit first and leave group last. -- 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