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
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,7 @@ public class GpuResourceAllocator {
+ 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 class GpuResourceAllocator {
}
usedDevices.put(gpuDevice, containerId);
LOG.info("ContainerId {} is assigned to GpuDevice {} on recovery.",
containerId, gpuDevice);
}
LOG.info("Finished recovery of GpuDevice for {}.", containerId);
}
/**