haiyang1987 commented on PR #6266:
URL: https://github.com/apache/hadoop/pull/6266#issuecomment-1818872859

   
   Thanks  @xinglin @ZanderXu for your detailed review.
   > > when we submit a task to an executorService and later on we cancel it 
due to timeout, and we don't capture interrupted exception in our task, what 
state will the thread from executorService be left? Do we have to capture 
interrupted exception in our task in this case?
   > 
   > This is very nice question, you can refer to the source code of 
`ThreadPoolExecutor#Worker#runWorker()`, the worker in the `ThreadPoolExecutor` 
will clear the `Interrupt` flag.
   
   Yeah, totally agree with this. 
   


-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to