YARN-7120. CapacitySchedulerPage NPE in "Aggregate scheduler counts" section. Contributed by Eric Payne
This commit is contained in:
parent
a3fee475f7
commit
99a7f5d451
|
@ -556,8 +556,12 @@ class CapacitySchedulerPage extends RmView {
|
||||||
.$class("ui-state-default").__("Queue").__().__().__().tbody();
|
.$class("ui-state-default").__("Queue").__().__().__().tbody();
|
||||||
SchedulerHealth.DetailedInformation di = entry.getValue();
|
SchedulerHealth.DetailedInformation di = entry.getValue();
|
||||||
if (di.getTimestamp() != 0) {
|
if (di.getTimestamp() != 0) {
|
||||||
containerId = di.getContainerId().toString();
|
if (di.getContainerId() != null) {
|
||||||
nodeId = di.getNodeId().toString();
|
containerId = di.getContainerId().toString();
|
||||||
|
}
|
||||||
|
if (di.getNodeId() != null) {
|
||||||
|
nodeId = di.getNodeId().toString();
|
||||||
|
}
|
||||||
queue = di.getQueue();
|
queue = di.getQueue();
|
||||||
}
|
}
|
||||||
tbody.$class("ui-widget-content").tr()
|
tbody.$class("ui-widget-content").tr()
|
||||||
|
|
Loading…
Reference in New Issue