YARN-7120. CapacitySchedulerPage NPE in "Aggregate scheduler counts" section. Contributed by Eric Payne
(cherry picked from commit 99a7f5d451fb91ef956c926f891283f70f0ada1c)
This commit is contained in:
parent
119220b88f
commit
57b5b186ce
@ -556,8 +556,12 @@ public void render(HtmlBlock.Block html) {
|
||||
.$class("ui-state-default")._("Queue")._()._()._().tbody();
|
||||
SchedulerHealth.DetailedInformation di = entry.getValue();
|
||||
if (di.getTimestamp() != 0) {
|
||||
containerId = di.getContainerId().toString();
|
||||
nodeId = di.getNodeId().toString();
|
||||
if (di.getContainerId() != null) {
|
||||
containerId = di.getContainerId().toString();
|
||||
}
|
||||
if (di.getNodeId() != null) {
|
||||
nodeId = di.getNodeId().toString();
|
||||
}
|
||||
queue = di.getQueue();
|
||||
}
|
||||
tbody.$class("ui-widget-content").tr()
|
||||
|
Loading…
x
Reference in New Issue
Block a user