From 7e7568826e05f6059bd906cf20c6e9fa20c3a08f Mon Sep 17 00:00:00 2001 From: lizhiboo Date: Fri, 5 Jun 2020 17:51:56 +0800 Subject: [PATCH] [ISSUE #1931] Remove duplicated doAfterRpcHooks logic fix bug: doAfterRpcHooks execute twice. --- .../apache/rocketmq/remoting/netty/NettyRemotingAbstract.java | 1 - 1 file changed, 1 deletion(-) diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstract.java b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstract.java index 23376727..3f21eb8f 100644 --- a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstract.java +++ b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstract.java @@ -226,7 +226,6 @@ public abstract class NettyRemotingAbstract { } else { NettyRequestProcessor processor = pair.getObject1(); RemotingCommand response = processor.processRequest(ctx, cmd); - doAfterRpcHooks(RemotingHelper.parseChannelRemoteAddr(ctx.channel()), cmd, response); callback.callback(response); } } catch (Throwable e) { -- GitLab