[
https://issues.apache.org/jira/browse/MAPREDUCE-5835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Lowe updated MAPREDUCE-5835:
----------------------------------
Resolution: Fixed
Fix Version/s: 2.4.1
3.0.0
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Thanks, Ming! I committed this to trunk, branch-2, and branch-2.4.
> Killing Task might cause the job to go to ERROR state
> -----------------------------------------------------
>
> Key: MAPREDUCE-5835
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5835
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Affects Versions: 2.4.0
> Reporter: Ming Ma
> Assignee: Ming Ma
> Priority: Critical
> Fix For: 3.0.0, 2.4.1
>
> Attachments: MAPREDUCE-5835.patch
>
>
> There could be a race condition if job is killed right after task attempt
> receives TA_DONE event. In that case, TaskImpl might receive
> T_ATTEMPT_SUCCEEDED followed by T_ATTEMPTED_KILLED for the same attempt, thus
> transition job to ERROR state.
> a. The task is in KILL_WAIT.
> b. TA receives TA_DONE event.
> c. Before TA transitions to SUCCEEDED state, Task sends TA_KILL event.
> d. TA transitions to SUCCEEDED state and thus send T_ATTEMPT_SUCCEEDED to the
> task. The task transitions to KILLED state.
> e. TA processes TA_KILL event and sends T_ATTEMPT_KILLED to the task.
> f. When task is in KILLED state, it can't handle T_ATTEMPT_KILLED event, thus
> transition job to ERROR state.
--
This message was sent by Atlassian JIRA
(v6.2#6252)