SzyWilliam commented on code in PR #738:
URL: https://github.com/apache/ratis/pull/738#discussion_r967673145
##########
ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerRpc.java:
##########
@@ -53,4 +55,9 @@ default InetSocketAddress getAdminServerAddress() {
/** The server role changes from leader to a non-leader role. */
default void notifyNotLeader(RaftGroupId groupId) {
}
+
+ default RaftServerAsynchronousProtocol async() {
+ throw new
UnsupportedOperationException(JavaUtils.getClassSimpleName(RaftServerAsynchronousProtocol.class)
+
+ "is not yet supported");
Review Comment:
done
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java:
##########
@@ -824,6 +824,8 @@ public CompletableFuture<RaftClientReply>
submitClientRequestAsync(
if (request.is(TypeCase.STALEREAD)) {
replyFuture = staleReadAsync(request);
+ } else if (request.is(TypeCase.READ)) {
+ replyFuture = readAsync(request);
Review Comment:
done
--
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]