YARN-3552. RM Web UI shows -1 running containers for completed apps. Contributed by Rohith

(cherry picked from commit 9356cf8676)
This commit is contained in:
Jason Lowe 2015-05-05 13:42:32 +00:00
parent 01bdfd794c
commit 0f30913ea8
3 changed files with 7 additions and 2 deletions

View File

@ -260,6 +260,9 @@ Release 2.8.0 - UNRELEASED
YARN-2725. Added test cases of retrying creating znode in ZKRMStateStore. YARN-2725. Added test cases of retrying creating znode in ZKRMStateStore.
(Tsuyoshi Ozawa via jianhe) (Tsuyoshi Ozawa via jianhe)
YARN-3552. RM Web UI shows -1 running containers for completed apps
(Rohith via jlowe)
Release 2.7.1 - UNRELEASED Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -133,7 +133,8 @@ public class FairSchedulerAppsBlock extends HtmlBlock {
.append(appInfo.getFinishTime()).append("\",\"") .append(appInfo.getFinishTime()).append("\",\"")
.append(appInfo.getState()).append("\",\"") .append(appInfo.getState()).append("\",\"")
.append(appInfo.getFinalStatus()).append("\",\"") .append(appInfo.getFinalStatus()).append("\",\"")
.append(appInfo.getRunningContainers()).append("\",\"") .append(appInfo.getRunningContainers() == -1 ? "N/A" : String
.valueOf(appInfo.getRunningContainers())).append("\",\"")
// Progress bar // Progress bar
.append("<br title='").append(percent) .append("<br title='").append(percent)
.append("'> <div class='").append(C_PROGRESSBAR).append("' title='") .append("'> <div class='").append(C_PROGRESSBAR).append("' title='")

View File

@ -110,7 +110,8 @@ public class RMAppsBlock extends AppsBlock {
.append("\",\"") .append("\",\"")
.append(app.getFinalAppStatus()) .append(app.getFinalAppStatus())
.append("\",\"") .append("\",\"")
.append(String.valueOf(app.getRunningContainers())) .append(app.getRunningContainers() == -1 ? "N/A" : String
.valueOf(app.getRunningContainers()))
.append("\",\"") .append("\",\"")
// Progress bar // Progress bar
.append("<br title='").append(percent).append("'> <div class='") .append("<br title='").append(percent).append("'> <div class='")