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:
parent
01bdfd794c
commit
0f30913ea8
|
@ -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
|
||||||
|
|
|
@ -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='")
|
||||||
|
|
|
@ -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='")
|
||||||
|
|
Loading…
Reference in New Issue