amaliujia commented on code in PR #1635:
URL: https://github.com/apache/ratis/pull/1635#discussion_r4266368492


##########
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:
   ah yes. I finally realize this will catch null.
   ```
           } else if (!(obj instanceof Message)) {
             return false;
   ```
   



-- 
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]

Reply via email to