YARN-10703. Fix potential null pointer error of gpuNodeResourceUpdateHandler in NodeResourceMonitorImpl. Contributed by Qi Zhu.
This commit is contained in:
parent
ce6bfd5718
commit
181b9ddc51
@ -173,8 +173,10 @@ public void run() {
|
||||
|
||||
float nodeGpuUtilization = 0F;
|
||||
try {
|
||||
nodeGpuUtilization =
|
||||
gpuNodeResourceUpdateHandler.getNodeGpuUtilization();
|
||||
if (gpuNodeResourceUpdateHandler != null) {
|
||||
nodeGpuUtilization =
|
||||
gpuNodeResourceUpdateHandler.getNodeGpuUtilization();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.error("Get Node GPU Utilization error: " + e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user