提交 14969aa3 编写于 作者: D duhenglucky

feat(broker) prevent blocked by group transfer service

上级 1558e052
...@@ -1240,6 +1240,7 @@ public class BrokerController { ...@@ -1240,6 +1240,7 @@ public class BrokerController {
} }
} }
public ExecutorService getSendMessageExecutor() {
return sendMessageExecutor;
}
} }
...@@ -79,7 +79,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement ...@@ -79,7 +79,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
@Override @Override
public void asyncProcessRequest(ChannelHandlerContext ctx, RemotingCommand request, RemotingResponseCallback responseCallback) throws Exception { public void asyncProcessRequest(ChannelHandlerContext ctx, RemotingCommand request, RemotingResponseCallback responseCallback) throws Exception {
asyncProcessRequest(ctx, request).thenAccept(responseCallback::callback); asyncProcessRequest(ctx, request).thenAcceptAsync(responseCallback::callback, this.brokerController.getSendMessageExecutor());
} }
public CompletableFuture<RemotingCommand> asyncProcessRequest(ChannelHandlerContext ctx, public CompletableFuture<RemotingCommand> asyncProcessRequest(ChannelHandlerContext ctx,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册