ZanderXu commented on PR #6266: URL: https://github.com/apache/hadoop/pull/6266#issuecomment-1818151590
@xinglin Thanks for your 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. -- 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