You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eric Badger (JIRA)" <ji...@apache.org> on 2016/12/02 20:32:59 UTC

[jira] [Comment Edited] (HADOOP-13709) Clean up subprocesses spawned by Shell.java:runCommand when the shell process exits

    [ https://issues.apache.org/jira/browse/HADOOP-13709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15716191#comment-15716191 ] 

Eric Badger edited comment on HADOOP-13709 at 12/2/16 8:32 PM:
---------------------------------------------------------------

Uploading a new patch. 
[~jlowe], I took out the static block that registers the shutdown hook in {{Shell}}. We can add this shutdown hook for the localizer via YARN-5641. Also added a javadoc for {{destroyAllProcesses}}. 


was (Author: ebadger):
Uploading a new patch. 
[~jlowe], I took out the static block that registers the shutdown hook in {{Shell}}. We can add this shutdown hook for the localizer via YARN-5461. Also added a javadoc for {{destroyAllProcesses}}. 

> Clean up subprocesses spawned by Shell.java:runCommand when the shell process exits
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-13709
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13709
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Eric Badger
>            Assignee: Eric Badger
>         Attachments: HADOOP-13709.001.patch, HADOOP-13709.002.patch, HADOOP-13709.003.patch, HADOOP-13709.004.patch, HADOOP-13709.005.patch, HADOOP-13709.006.patch, HADOOP-13709.007.patch, HADOOP-13709.008.patch, HADOOP-13709.009.patch
>
>
> The runCommand code in Shell.java can get into a situation where it will ignore InterruptedExceptions and refuse to shutdown due to being in I/O waiting for the return value of the subprocess that was spawned. We need to allow for the subprocess to be interrupted and killed when the shell process gets killed. Currently the JVM will shutdown and all of the subprocesses will be orphaned and not killed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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