szetszwo commented on code in PR #1709:
URL: https://github.com/apache/ratis/pull/1709#discussion_r4728473312


##########
ratis-client/src/main/java/org/apache/ratis/client/impl/OrderedAsync.java:
##########
@@ -268,14 +290,21 @@ private void handleException(PendingOrderedRequest 
pending, RaftClientRequest re
     final TimeDuration sleepTime = client.getEffectiveSleepTime(e, 
action.getSleepTime());
     LOG.debug("schedule* retry with sleep {} for attempt #{} of {}, {}",
         sleepTime, event.getAttemptCount(), request, retryPolicy);
-    final SlidingWindow.Client<PendingOrderedRequest, RaftClientReply> 
slidingWindow = getSlidingWindow(request);
+    final SlidingWindow.Client<PendingOrderedRequest, RaftClientReply> 
slidingWindow
+        = getSlidingWindow(request).getWindow();
     client.getScheduler().onTimeout(sleepTime,
         () -> slidingWindow.retry(pending, this::sendRequestWithRetry),
         LOG, () -> "Failed* to retry " + pending);
   }
 
   void assertRequestSemaphore(int expectedAvailablePermits, int 
expectedQueueLength) {

Review Comment:
   The method is only used in test.  Let's remove it.



##########
ratis-docs/src/site/markdown/configurations.md:
##########
@@ -779,11 +779,11 @@ Client configurations are located at 
`RaftClientConfigKeys`.
 
 ### Async - Configurations related to async requests.
 
-| **Property**    | `raft.client.async.outstanding-requests.max` |
-|:----------------|:---------------------------------------------|
-| **Description** | maximum number of outstanding async requests |
-| **Type**        | int                                          |
-| **Default**     | 100                                          |
+| **Property**    | `raft.client.async.outstanding-requests.max`               
                                                                                
       |
+|:----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|
+| **Description** | maximum number of outstanding async requests per sliding 
window (the client has one window for the leader and one for each target 
server)        |

Review Comment:
   > ... per sliding window (the client has one window for the leader and one 
for each target server)
   
   Let's do not mention sliding window (an implementation detail) here.  Just 
say
   ```
   ... per target, where a target is either the entire group or a particular 
server.
   ```



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