philipnee commented on code in PR #13380: URL: https://github.com/apache/kafka/pull/13380#discussion_r1139650990
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java: ########## @@ -137,31 +144,40 @@ CompletableFuture<ClientResponse> sendAutoCommit(final Map<TopicPartition, Offse } return null; }); - return future; } - public void clientPoll(final long currentTimeMs) { - this.autoCommitState.ifPresent(t -> t.ack(currentTimeMs)); + /** + * Handles {@link org.apache.kafka.clients.consumer.internals.events.CommitApplicationEvent}. It creates an + * {@link UnsentOffsetCommitRequest} and enqueue it to send later. + */ + public CompletableFuture<ClientResponse> addOffsetCommitRequest(final Map<TopicPartition, OffsetAndMetadata> offsets) { Review Comment: just to make both method return type and naming consistent. -- 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