slievrly commented on code in PR #6998:
URL: https://github.com/apache/incubator-seata/pull/6998#discussion_r1965339369


##########
core/src/main/java/org/apache/seata/core/rpc/netty/AbstractNettyRemoting.java:
##########
@@ -173,6 +175,12 @@ protected Object sendSync(Channel channel, RpcMessage 
rpcMessage, long timeoutMi
             LOGGER.warn("sendSync nothing, caused by null channel.");
             return null;
         }
+        if (MsgVersionHelper.versionNotSupport(channel, rpcMessage)) {
+            if (LOGGER.isDebugEnabled()) {
+                LOGGER.debug("Message sending will be skipped as the client 
version does not support it,{}", rpcMessage);
+            }
+            return new VersionNotSupportMessage();

Review Comment:
   Why not throw an exception?



-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to