[
https://issues.apache.org/jira/browse/MAPREDUCE-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hitesh Shah updated MAPREDUCE-5142:
-----------------------------------
Description:
RMCommunicator sets final state to KILLED if the job is in a running state and
isSignalled is set to true.
{code}
} else if (jobImpl.getInternalState() == JobStateInternal.KILLED
|| (jobImpl.getInternalState() == JobStateInternal.RUNNING &&
isSignalled)) {
finishState = FinalApplicationStatus.KILLED;
} else if (jobImpl.getInternalState() == JobStateInternal.FAILED
|| jobImpl.getInternalState() == JobStateInternal.ERROR) {
finishState = FinalApplicationStatus.FAILED;
{code}
This happens when any uncaught exception in any event handler ends up causing
the AsyncDispatcher to trigger a shutdown. In such a scenario, even though the
AM actually failed due to some error, its actual state ends up as KILLED.
was:
RMCommunicator sets final state to KILLED if the job is in a running state and
isSignalled is set to true.
{code}
} else if (jobImpl.getInternalState() == JobStateInternal.KILLED
|| (jobImpl.getInternalState() == JobStateInternal.RUNNING &&
isSignalled)) {
finishState = FinalApplicationStatus.KILLED;
} else if (jobImpl.getInternalState() == JobStateInternal.FAILED
|| jobImpl.getInternalState() == JobStateInternal.ERROR) {
finishState = FinalApplicationStatus.FAILED;
{code}
This happens when for some reason, there is an exception in a state machine's
event handler causing AsyncDispatcher to trigger a shutdown. In such a
scenario, even though the AM actually failed due to some error, its actual
state ends up as KILLED.
> MR AM unregisters with state KILLED when an error causes dispatcher to
> shutdown
> -------------------------------------------------------------------------------
>
> Key: MAPREDUCE-5142
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5142
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Affects Versions: 2.0.3-alpha, 0.23.5
> Reporter: Hitesh Shah
>
> RMCommunicator sets final state to KILLED if the job is in a running state
> and isSignalled is set to true.
> {code}
> } else if (jobImpl.getInternalState() == JobStateInternal.KILLED
> || (jobImpl.getInternalState() == JobStateInternal.RUNNING &&
> isSignalled)) {
> finishState = FinalApplicationStatus.KILLED;
> } else if (jobImpl.getInternalState() == JobStateInternal.FAILED
> || jobImpl.getInternalState() == JobStateInternal.ERROR) {
> finishState = FinalApplicationStatus.FAILED;
> {code}
> This happens when any uncaught exception in any event handler ends up causing
> the AsyncDispatcher to trigger a shutdown. In such a scenario, even though
> the AM actually failed due to some error, its actual state ends up as KILLED.
--
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