YongGoose commented on code in PR #7505:
URL: https://github.com/apache/incubator-seata/pull/7505#discussion_r2191491996


##########
core/src/main/java/org/apache/seata/core/rpc/netty/AbstractNettyRemotingClient.java:
##########
@@ -137,6 +140,13 @@ public void init() {
                     new NamedThreadFactory(getThreadPrefix(), 
MAX_MERGE_SEND_THREAD));
             mergeSendExecutorService.submit(new MergedSendRunnable());
         }
+        reconnectExecutor = new ThreadPoolExecutor(

Review Comment:
   IMO, creating a new thread pool is generally preferred when there’s a 
high-priority task or when real-time processing is critical. Also, how 
frequently the issue occurs can be an important factor in deciding whether to 
create a new thread pool.
   
   From a simple traceability standpoint, the current `timeoutExecutor` is used 
in several places — such as handling reconnections and removing timed-out 
messages.
   
   So, it might make sense to update the prefix to something more general that 
fits well across all these usages, and reuse it accordingly.



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