codelipenghui commented on code in PR #17051:
URL: https://github.com/apache/pulsar/pull/17051#discussion_r945713240


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java:
##########
@@ -241,6 +244,7 @@ public void channelActive(ChannelHandlerContext ctx) throws 
Exception {
         super.channelActive(ctx);
         this.localAddress = ctx.channel().localAddress();
         this.remoteAddress = ctx.channel().remoteAddress();
+        internalPinnedExecutor = ctx.channel().eventLoop();

Review Comment:
   Why not use the internal thread pool of the Pulsar client?
   
   Here looks like switching to another IO thread. Either don't introduce a 
thread switch here or switch to the client's internal thread to reduce the IO 
thread burden.



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