philipnee commented on code in PR #13678: URL: https://github.com/apache/kafka/pull/13678#discussion_r1191387973
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java: ########## @@ -1223,6 +1233,26 @@ public void maybeAutoCommitOffsetsAsync(long now) { } } + private boolean waitForPendingAsyncCommits(Timer timer) { Review Comment: could you elaborate `logic will spread around and understandability will suffer a lot` : I was suggesting to first check if there's any inflight commits, then wait for the coordinator to be connected. After the connection is established, you can try to send the async commits. -- 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