qxggg opened a new pull request, #15738:
URL: https://github.com/apache/dubbo/pull/15738
What is the purpose of the change?
This pull request improves the handling of Timeout tasks in DefaultFuture
when the associated executor rejects the task due to being full or shut down.
Previously, if the executor rejected the timeout task, a
RejectedExecutionException was thrown, which could interrupt the processing
flow and was not easily consumable by the user. This change:
1. Captures the rejection and generates a proper Response with
status SERVER_THREADPOOL_EXHAUSTED_ERROR (100).
2. Sends the response back to the caller via
DefaultFuture.received(), ensuring the user can detect that the timeout task
was not executed.
3. Removes the future from FUTURES to prevent resource leakage.
This improves both reliability and user visibility of executor rejection
scenarios without throwing exceptions.
--
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]