bowenli-oai commented on PR #8528:
URL: https://github.com/apache/hadoop/pull/8528#issuecomment-6834038463

   [P2] Preserve tasks accepted before orderly shutdown
   
   Reviewed https://github.com/apache/hadoop/pull/8528 at 
`ad0d2f48efbd62b30a1934a7b63eb0ba38f67584` (open).
   
   The new execution-time checks in 
`hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SemaphoredDelegatingExecutor.java:240`
 and `:263` reject work already accepted before `shutdown()`. With a blocked 
single worker, enqueue a Runnable and Callable, call orderly shutdown, then 
release the worker: both futures fail with RejectedExecutionException and 
neither body runs. I reproduced this using the unchanged PR class and the 
existing shaded Guava delegate, with no-op statistics/annotation dependencies.
   
   This also bypasses task-owned completion signaling: Aliyun directory rename 
counts submitted copy tasks and waits for their completion counter; if 
filesystem close shuts down the copy pool before queued copies start, those 
tasks never reach their finally block and the rename can wait indefinitely.
   
   Please keep shutdown rejection at submission, allowing accepted queued tasks 
to drain, and add a regression covering queued Runnable/Callable execution 
after orderly shutdown.


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