[ 
https://issues.apache.org/jira/browse/RATIS-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Song Ziyang resolved RATIS-1916.
--------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

The PR is now merged. Thanks [~szetszwo] for working on this!

> OrderAsync does not call handReply
> ----------------------------------
>
>                 Key: RATIS-1916
>                 URL: https://issues.apache.org/jira/browse/RATIS-1916
>             Project: Ratis
>          Issue Type: Bug
>          Components: client
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> In code below, the future f is always done so client.handleReply(..) is never 
> called.
> {code}
> //OrderedAsync.sendRequestWithRetry(..)
>     sendRequest(pending).thenAccept(reply -> {
>       if (f.isDone()) {
>         return;
>       }
>       if (reply == null) {
>         scheduleWithTimeout(pending, request, retryPolicy, null);
>       } else {
>         client.handleReply(request, reply);
>         f.complete(reply);
>       }
>     })...
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to