You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "drpmma (via GitHub)" <gi...@apache.org> on 2023/04/03 08:03:12 UTC

[GitHub] [rocketmq] drpmma commented on a diff in pull request #6188: [ISSUE #6187] Avoid unnecessary retries when an acl fails

drpmma commented on code in PR #6188:
URL: https://github.com/apache/rocketmq/pull/6188#discussion_r1155613556


##########
remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstract.java:
##########
@@ -337,8 +337,13 @@ private Runnable buildProcessRequestHandler(ChannelHandlerContext ctx, RemotingC
                 log.error(cmd.toString());
 
                 if (!cmd.isOnewayRPC()) {
-                    response = RemotingCommand.createResponseCommand(RemotingSysResponseCode.SYSTEM_ERROR,
-                        UtilAll.exceptionSimpleDesc(e));
+                    if (RemotingHelper.ACL_EXCEPTION.equals(e.getClass().getSimpleName())) {

Review Comment:
   Would it be better to return the response in the processor with ACL failed rather than deal with it in NettyRemotingAbstract.java?
   
   The NettyRemotingAbstract should not care about ACL or specific error reason.



-- 
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: commits-unsubscribe@rocketmq.apache.org

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