szetszwo commented on code in PR #1635:
URL: https://github.com/apache/ratis/pull/1635#discussion_r4249948640
##########
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:
@amaliujia , thanks for the followup!
Let's use the new Message.equals(..) method:
```java
return OrderedAsync.DUMMY.equals(request.getMessage());
```
--
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]