Tsz-wo Sze created RATIS-1916:
---------------------------------
Summary: 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
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)