[
https://issues.apache.org/jira/browse/HDDS-11174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated HDDS-11174:
------------------------------
Description:
In the code below, it should just return the replyFuture instead of calling
CompletableFuture.get(). This change is useful for HDDS-9844.
{code}
//XceiverClientRatis.watchForCommit
CompletableFuture<RaftClientReply> replyFuture =
getClient().async().watch(index, watchType);
final RaftClientReply reply = replyFuture.get();
{code}
Summary: [hsync] Change XceiverClientRatis.watchForCommit to async
(was: [hsync] Change XceiverClientSpi.watchForCommit to async)
> [hsync] Change XceiverClientRatis.watchForCommit to async
> ---------------------------------------------------------
>
> Key: HDDS-11174
> URL: https://issues.apache.org/jira/browse/HDDS-11174
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Client
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
>
> In the code below, it should just return the replyFuture instead of calling
> CompletableFuture.get(). This change is useful for HDDS-9844.
> {code}
> //XceiverClientRatis.watchForCommit
> CompletableFuture<RaftClientReply> replyFuture =
> getClient().async().watch(index, watchType);
> final RaftClientReply reply = replyFuture.get();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]