YARN-3584. Fixed attempt diagnostics format shown on the UI. Contributed by nijel

(cherry picked from commit b88700dcd0)
This commit is contained in:
Jian He 2015-05-07 13:54:07 -07:00
parent 1886bab0f1
commit c35114a1e6
2 changed files with 7 additions and 4 deletions

View File

@ -285,6 +285,9 @@ Release 2.8.0 - UNRELEASED
YARN-3577. Misspelling of threshold in log4j.properties for tests.
(Brahma Reddy Battula via aajisaka)
YARN-3584. Fixed attempt diagnostics format shown on the UI. (nijel via
jianhe)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -1455,14 +1455,14 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
finishEvent.getApplicationAttemptId()).append(
" exited with ").append(" exitCode: ").append(status.getExitStatus()).
append("\n");
diagnosticsBuilder.append("Failing this attempt.").append("Diagnostics: ")
.append(status.getDiagnostics());
if (this.getTrackingUrl() != null) {
diagnosticsBuilder.append("For more detailed output,").append(
" check application tracking page:").append(
" check application tracking page: ").append(
this.getTrackingUrl()).append(
"Then, click on links to logs of each attempt.\n");
" Then, click on links to logs of each attempt.\n");
}
diagnosticsBuilder.append("Diagnostics: ").append(status.getDiagnostics())
.append("Failing this attempt");
return diagnosticsBuilder.toString();
}