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

This commit is contained in:
Jason Lowe 2015-05-05 13:42:32 +00:00
parent 318081ccd7
commit 9356cf8676
3 changed files with 7 additions and 2 deletions

View File

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

View File

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

View File

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