[
https://issues.apache.org/jira/browse/HADOOP-9787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karthik Kambatla updated HADOOP-9787:
-------------------------------------
Attachment: hadoop-9787-2.patch
Uploading a new patch that addresses Sandy's comments.
The helper can potentially be used in several classes, spanning HDFS, YARN, MR,
JHS. Don't think we should update everything at once in this patch.
> ShutdownHelper util to shutdown threads and threadpools
> -------------------------------------------------------
>
> Key: HADOOP-9787
> URL: https://issues.apache.org/jira/browse/HADOOP-9787
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Affects Versions: 2.0.4-alpha
> Reporter: Karthik Kambatla
> Assignee: Karthik Kambatla
> Attachments: hadoop-9787-1.patch, hadoop-9787-2.patch
>
>
> Several classes spawn threads and threadpools and shut them down on close()
> and serviceStop() etc. A helper class helps standardize the wait time after a
> thread/threadpool is interrupted/shutdown for it to actually terminate.
> One example of this is MAPREDUCE-5428.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira