diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java index 67936ba3b7..0b95ca7d93 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java @@ -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); } /**