YARN-9370. Added logging for recovering assigned GPU devices.

Contributed by Yesha Vora
This commit is contained in:
Eric Yang 2019-03-20 19:12:19 -04:00
parent f2b862cac6
commit 506502bb83

View File

@ -119,6 +119,7 @@ public synchronized void recoverAssignedGpus(ContainerId containerId)
+ containerId);
}
LOG.info("Starting recovery of GpuDevice for {}.", containerId);
for (Serializable gpuDeviceSerializable : c.getResourceMappings()
.getAssignedResources(GPU_URI)) {
if (!(gpuDeviceSerializable instanceof GpuDevice)) {
@ -146,7 +147,10 @@ public synchronized void recoverAssignedGpus(ContainerId containerId)
}
usedDevices.put(gpuDevice, containerId);
LOG.info("ContainerId {} is assigned to GpuDevice {} on recovery.",
containerId, gpuDevice);
}
LOG.info("Finished recovery of GpuDevice for {}.", containerId);
}
/**