d8tltanc commented on a change in pull request #8846:
URL: https://github.com/apache/kafka/pull/8846#discussion_r468738156



##########
File path: 
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java
##########
@@ -1295,7 +1309,7 @@ private void processRequests() {
 
                 // Ensure that we use a small poll timeout if there are 
pending calls which need to be sent
                 if (!pendingCalls.isEmpty())
-                    pollTimeout = Math.min(pollTimeout, retryBackoffMs);
+                    pollTimeout = Math.min(pollTimeout, 
retryBackoff.backoff(0));

Review comment:
       Yes, `retryBackoff.backoff(0)` equals  to `retryBackoffMs`
   ```
       public long backoff(long attempts) {
           if (expMax == 0) {
               return initialInterval;
           }
   ```




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to