|
@@ -865,6 +865,8 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
|
|
|
break;
|
|
|
case KILLED:
|
|
|
{
|
|
|
+ // don't leave the tracking URL pointing to a non-existent AM
|
|
|
+ appAttempt.setTrackingUrlToRMAppPage();
|
|
|
appEvent =
|
|
|
new RMAppFailedAttemptEvent(applicationId,
|
|
|
RMAppEventType.ATTEMPT_KILLED,
|
|
@@ -873,6 +875,8 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
|
|
|
break;
|
|
|
case FAILED:
|
|
|
{
|
|
|
+ // don't leave the tracking URL pointing to a non-existent AM
|
|
|
+ appAttempt.setTrackingUrlToRMAppPage();
|
|
|
appEvent =
|
|
|
new RMAppFailedAttemptEvent(applicationId,
|
|
|
RMAppEventType.ATTEMPT_FAILED,
|
|
@@ -1063,7 +1067,6 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
|
|
|
RMAppAttemptEvent event) {
|
|
|
appAttempt.diagnostics.append("ApplicationMaster for attempt " +
|
|
|
appAttempt.getAppAttemptId() + " timed out");
|
|
|
- appAttempt.setTrackingUrlToRMAppPage();
|
|
|
super.transition(appAttempt, event);
|
|
|
}
|
|
|
}
|
|
@@ -1182,11 +1185,6 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
|
|
|
" due to: " + containerStatus.getDiagnostics() + "." +
|
|
|
"Failing this attempt.");
|
|
|
|
|
|
- // When the AM dies, the trackingUrl is left pointing to the AM's URL,
|
|
|
- // which shows up in the scheduler UI as a broken link. Direct the
|
|
|
- // user to the app page on the RM so they can see the status and logs.
|
|
|
- appAttempt.setTrackingUrlToRMAppPage();
|
|
|
-
|
|
|
new FinalTransition(RMAppAttemptState.FAILED).transition(
|
|
|
appAttempt, containerFinishedEvent);
|
|
|
return RMAppAttemptState.FAILED;
|