szetszwo commented on code in PR #1635:
URL: https://github.com/apache/ratis/pull/1635#discussion_r4262247154
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java:
##########
@@ -1267,7 +1267,8 @@ private CompletableFuture<RaftClientReply>
readAsync(RaftClientRequest request)
}
}
private static boolean isDummyRead(RaftClientRequest request) {
- return request.getMessage() != null &&
OrderedAsync.DUMMY.getContent().equals(request.getMessage().getContent());
+ return request.getMessage() != null &&
+
Message.toByteString(OrderedAsync.DUMMY).equals(Message.toByteString(request.getMessage()));
Review Comment:
We don't need `request.getMessage() != null` since Message.equals(..) can
take care a null parameter.
--
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]