You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by sz...@apache.org on 2022/08/02 20:58:03 UTC

[ratis] branch master updated: RATIS-1655. Fix OrderedStreamAsync#scheduleWithTimeout to report a correct timeout value (#701)

This is an automated email from the ASF dual-hosted git repository.

szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 3db8f9ea RATIS-1655. Fix OrderedStreamAsync#scheduleWithTimeout to report a correct timeout value (#701)
3db8f9ea is described below

commit 3db8f9eac82efedd51322a0d213300c9a0940bb6
Author: Kiyoshi Mizumaru <ki...@gmail.com>
AuthorDate: Wed Aug 3 05:57:56 2022 +0900

    RATIS-1655. Fix OrderedStreamAsync#scheduleWithTimeout to report a correct timeout value (#701)
---
 .../src/main/java/org/apache/ratis/client/impl/OrderedStreamAsync.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ratis-client/src/main/java/org/apache/ratis/client/impl/OrderedStreamAsync.java b/ratis-client/src/main/java/org/apache/ratis/client/impl/OrderedStreamAsync.java
index 9e603455..4b4c9eb3 100644
--- a/ratis-client/src/main/java/org/apache/ratis/client/impl/OrderedStreamAsync.java
+++ b/ratis-client/src/main/java/org/apache/ratis/client/impl/OrderedStreamAsync.java
@@ -171,7 +171,7 @@ public class OrderedStreamAsync {
     scheduler.onTimeout(timeout, () -> {
       if (!request.getReplyFuture().isDone()) {
         request.getReplyFuture().completeExceptionally(
-            new TimeoutIOException("Timeout " + requestTimeout + ": Failed to send " + request));
+            new TimeoutIOException("Timeout " + timeout + ": Failed to send " + request));
       }
     }, LOG, () -> "Failed to completeExceptionally for " + request);
   }