frankvicky commented on code in PR #18737: URL: https://github.com/apache/kafka/pull/18737#discussion_r1950446766
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java: ########## @@ -267,7 +268,7 @@ private CompletableFuture<Map<TopicPartition, OffsetAndMetadata>> requestAutoCom public void maybeAutoCommitAsync() { if (autoCommitEnabled() && autoCommitState.get().shouldAutoCommit()) { OffsetCommitRequestState requestState = createOffsetCommitRequest( - subscriptions.allConsumed(), + latestPartitionOffsets, Review Comment: Yes. If we move to triggering those commits before fetching, we no longer need the snapshot. But in the meantime, does it also mean we don't invoke `maybeAutoCommitAsync` in `CommitRequestManager.poll()` anymore? (Only invoke it when processing `PollEvent`, just like `maybeReconcile`) `CommitRequestManager.poll()` will only check for pending offset requests; if so, it will send them. -- 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