YARN-3584. Fixed attempt diagnostics format shown on the UI. Contributed by nijel
(cherry picked from commit b88700dcd0
)
This commit is contained in:
parent
1886bab0f1
commit
c35114a1e6
|
@ -285,6 +285,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-3577. Misspelling of threshold in log4j.properties for tests.
|
YARN-3577. Misspelling of threshold in log4j.properties for tests.
|
||||||
(Brahma Reddy Battula via aajisaka)
|
(Brahma Reddy Battula via aajisaka)
|
||||||
|
|
||||||
|
YARN-3584. Fixed attempt diagnostics format shown on the UI. (nijel via
|
||||||
|
jianhe)
|
||||||
|
|
||||||
Release 2.7.1 - UNRELEASED
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -1455,14 +1455,14 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
|
||||||
finishEvent.getApplicationAttemptId()).append(
|
finishEvent.getApplicationAttemptId()).append(
|
||||||
" exited with ").append(" exitCode: ").append(status.getExitStatus()).
|
" exited with ").append(" exitCode: ").append(status.getExitStatus()).
|
||||||
append("\n");
|
append("\n");
|
||||||
|
diagnosticsBuilder.append("Failing this attempt.").append("Diagnostics: ")
|
||||||
|
.append(status.getDiagnostics());
|
||||||
if (this.getTrackingUrl() != null) {
|
if (this.getTrackingUrl() != null) {
|
||||||
diagnosticsBuilder.append("For more detailed output,").append(
|
diagnosticsBuilder.append("For more detailed output,").append(
|
||||||
" check application tracking page:").append(
|
" check application tracking page: ").append(
|
||||||
this.getTrackingUrl()).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();
|
return diagnosticsBuilder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue