szetszwo commented on PR #828:
URL: https://github.com/apache/ratis/pull/828#issuecomment-1454927882

   ```java
         this.timeoutFuture = TIMER.scheduleWithFixedDelay(() -> {
   ```
   
   @SzyWilliam , it should schedule a timeout whenever calling onNext.   A fix 
rate does not work.  The test will fail if we change the short sleep multiplier 
to 0.8.
   ```java
   +++ b/ratis-test/src/test/java/org/apache/ratis/grpc/tests/GreeterImpl.java
   @@ -39,7 +39,7 @@ class GreeterImpl extends GreeterGrpc.GreeterImplBase {
    
      GreeterImpl(int slow, TimeDuration timeout) {
        this.slow = slow;
   -    this.shortSleepTime = timeout.multiply(0.25);
   +    this.shortSleepTime = timeout.multiply(0.8);
        this.longSleepTime = timeout.multiply(2);
      }
   ```
   


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