AndrewJSchofield commented on code in PR #23014:
URL: https://github.com/apache/kafka/pull/23014#discussion_r3767154215


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchRequestManager.java:
##########
@@ -69,6 +78,19 @@ protected void maybeThrowAuthFailure(Node node) {
         networkClientDelegate.maybeThrowAuthFailure(node);
     }
 
+    /**
+     * {@inheritDoc}
+     *
+     * If the most recent attempt to prepare fetch requests found nothing to 
send solely because every candidate 
+     * partition was skipped for a reason that only changes over time 
(reconnect backoff, an in-flight request, etc.), 
+     * nothing else will wake the application thread. In that case, its wait 
is bounded by {@code retryBackoffMs} to 
+     * ensure it wakes up and re-evaluates fetch eligibility periodically.
+     */
+    @Override
+    public long maximumTimeToWait(long currentTimeMs) {

Review Comment:
   We ignore `maximumTimeToWait` for consumers which are not in groups, I 
suppose.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to