[
https://issues.apache.org/jira/browse/YARN-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13858305#comment-13858305
]
haosdent commented on YARN-1549:
--------------------------------
In RMAppImpl.java, the comments tell us "If this is an unmanaged AM, we are
safe to unregister since unmanaged AM will immediately go to FINISHED state on
AM unregistration". But I couldn't found any codes relates to this.
{code:java}
@Override
public boolean isAppSafeToTerminate() {
RMAppState state = getState();
return state.equals(RMAppState.FINISHING)
|| state.equals(RMAppState.FINISHED) || state.equals(RMAppState.FAILED)
|| state.equals(RMAppState.KILLED) ||
// If this is an unmanaged AM, we are safe to unregister since unmanaged
// AM will immediately go to FINISHED state on AM unregistration
getApplicationSubmissionContext().getUnmanagedAM();
}
{code}
> TestUnmanagedAMLauncher#testDSShell fails in trunk
> --------------------------------------------------
>
> Key: YARN-1549
> URL: https://issues.apache.org/jira/browse/YARN-1549
> Project: Hadoop YARN
> Issue Type: Test
> Reporter: Ted Yu
> Assignee: haosdent
>
> The following error is reproducible:
> {code}
> testDSShell(org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher)
> Time elapsed: 14.911 sec <<< ERROR!
> java.lang.RuntimeException: Failed to receive final expected state in
> ApplicationReport, CurrentState=RUNNING, ExpectedStates=FINISHED,FAILED,KILLED
> at
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.monitorApplication(UnmanagedAMLauncher.java:447)
> at
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.run(UnmanagedAMLauncher.java:352)
> at
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher.testDSShell(TestUnmanagedAMLauncher.java:147)
> {code}
> See https://builds.apache.org/job/Hadoop-Yarn-trunk/435
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)