philipnee commented on code in PR #13380:
URL: https://github.com/apache/kafka/pull/13380#discussion_r1136096815


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:
##########
@@ -80,16 +97,18 @@ public CommitRequestManager(
      */
     @Override
     public NetworkClientDelegate.PollResult poll(final long currentTimeMs) {
-        maybeAutoCommit(currentTimeMs);
+        maybeAutoCommit();
+        List<NetworkClientDelegate.UnsentRequest> unsentRequests = new 
ArrayList<>();
 
-        if (stagedCommits.isEmpty()) {
-            return new NetworkClientDelegate.PollResult(Long.MAX_VALUE, new 
ArrayList<>());
+        if (!stagedCommits.isEmpty()) {

Review Comment:
   Make sense.  I think the reason I did that initially was that I wanted to 
send out all of the commits first before sending the fetchOffsetRequest.  



-- 
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

Reply via email to