YARN-4028. AppBlock page key update and diagnostics value null on

recovery. Contributed by Bibin A Chundatt
This commit is contained in:
Xuan 2015-08-18 22:53:03 -07:00
parent 7ecbfd44aa
commit 22dc5fc209
3 changed files with 8 additions and 4 deletions

View File

@ -780,6 +780,9 @@ Release 2.8.0 - UNRELEASED
YARN-3987. Send AM container completed msg to NM once AM finishes.
(sandflee via jianhe)
YARN-4028. AppBlock page key update and diagnostics value null on recovery
(Bibin A Chundatt via xgong)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -195,13 +195,13 @@ public class AppBlock extends HtmlBlock {
&& webUiType.equals(YarnWebParams.RM_WEB_UI)) {
LogAggregationStatus status = getLogAggregationStatus();
if (status == null) {
overviewTable._("Log Aggregation Status", "N/A");
overviewTable._("Log Aggregation Status:", "N/A");
} else if (status == LogAggregationStatus.DISABLED
|| status == LogAggregationStatus.NOT_START
|| status == LogAggregationStatus.SUCCEEDED) {
overviewTable._("Log Aggregation Status", status.name());
overviewTable._("Log Aggregation Status:", status.name());
} else {
overviewTable._("Log Aggregation Status",
overviewTable._("Log Aggregation Status:",
root_url("logaggregationstatus", app.getAppId()), status.name());
}
}

View File

@ -782,7 +782,8 @@ public class RMAppImpl implements RMApp, Recoverable {
LOG.info("Recovering app: " + getApplicationId() + " with " +
+ appState.getAttemptCount() + " attempts and final state = "
+ this.recoveredFinalState );
this.diagnostics.append(appState.getDiagnostics());
this.diagnostics.append(null == appState.getDiagnostics() ? "" : appState
.getDiagnostics());
this.storedFinishTime = appState.getFinishTime();
this.startTime = appState.getStartTime();