mimaison commented on a change in pull request #10743:
URL: https://github.com/apache/kafka/pull/10743#discussion_r648520281



##########
File path: 
clients/src/main/java/org/apache/kafka/clients/admin/internals/AdminApiDriver.java
##########
@@ -267,7 +278,11 @@ public void onFailure(
     private void clearInflightRequest(long currentTimeMs, RequestSpec<K> spec) 
{
         RequestState requestState = requestStates.get(spec.scope);
         if (requestState != null) {
-            requestState.clearInflight(currentTimeMs);
+            if (spec.scope instanceof FulfillmentScope) {
+                requestState.clearInflight(currentTimeMs + retryBackoffMs);
+            } else {
+                requestState.clearInflight(currentTimeMs);

Review comment:
       That surprised me too. It is the current behaviour that 
all`*RetryBackoff` tests in `KafkaAdminClientTest` enforce




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