qxggg commented on code in PR #15695:
URL: https://github.com/apache/dubbo/pull/15695#discussion_r2355860460


##########
dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java:
##########
@@ -321,10 +322,13 @@ public void run(Timeout timeout) {
             if (future == null || future.isDone()) {
                 return;
             }
-
             ExecutorService executor = future.getExecutor();
             if (executor != null && !executor.isShutdown()) {
-                executor.execute(() -> notifyTimeout(future));
+                try {
+                    executor.execute(() -> notifyTimeout(future));
+                } catch (RejectedExecutionException e) {
+                    notifyTimeout(future);

Review Comment:
   Hi, just to confirm:
   Thanks for your reply. This is my first time contributing, so I want to make 
sure I fully understand.
   Should I change the code now to simply let the RejectedExecutionException be 
thrown and then update this PR?
   Or would you prefer me to leave this PR as is and wait until we open another 
PR for handling the cleanup logic?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to