[ 
https://issues.apache.org/jira/browse/HADOOP-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Chansler updated HADOOP-2721:
------------------------------------

     Description: 
We should use the setsid command when the task is launched to create a new 
session. We should be able to use the setsid program when we launch the bash 
process to create a new session. That will allow us to kill the entire session 
with a single signal and remove the need for the ping methods in both 
TaskTracker.Child and pipes.

The patch uses setsid when creating new tasks sothat subprocesses of this 
process will be with in this new session(and this process will be the process 
leader for all the subprocesses). Thus killing the subprocesses becomes 
easy(just by killing all the processes in this process group) when killing the 
task.

  was:We should use the setsid command when the task is launched to create a 
new session. We should be able to use the setsid program when we launch the 
bash process to create a new session. That will allow us to kill the entire 
session with a single signal and remove the need for the ping methods in both 
TaskTracker.Child and pipes.

    Release Note:   (was: The patch uses setsid when creating new tasks sothat 
subprocesses of this process will be with in this new session(and this process 
will be the process leader for all the subprocesses). Thus killing the 
subprocesses becomes easy(just by killing all the processes in this process 
group) when killing the task.)

Editorial pass over all release notes prior to publication of 0.21. 

> Use job control for tasks (and therefore for pipes and streaming)
> -----------------------------------------------------------------
>
>                 Key: HADOOP-2721
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2721
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Owen O'Malley
>            Assignee: Ravi Gummadi
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-2721-v10.patch, HADOOP-2721-v11.1.patch, 
> HADOOP-2721-v11.3.patch, HADOOP-2721-v11.4.patch, HADOOP-2721-v11.patch, 
> HADOOP-2721-v2.patch, HADOOP-2721-v3.patch, HADOOP-2721-v9.patch, 
> HADOOP-2721.patch, HADOOP-2721.patch, HADOOP-2721.patch
>
>
> We should use the setsid command when the task is launched to create a new 
> session. We should be able to use the setsid program when we launch the bash 
> process to create a new session. That will allow us to kill the entire 
> session with a single signal and remove the need for the ping methods in both 
> TaskTracker.Child and pipes.
> The patch uses setsid when creating new tasks sothat subprocesses of this 
> process will be with in this new session(and this process will be the process 
> leader for all the subprocesses). Thus killing the subprocesses becomes 
> easy(just by killing all the processes in this process group) when killing 
> the task.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to