YARN-3428. Debug log resources to be localized for a container. (kasha)
This commit is contained in:
parent
7610925e90
commit
2daa478a64
|
@ -89,6 +89,8 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-3258. FairScheduler: Need to add more logging to investigate
|
YARN-3258. FairScheduler: Need to add more logging to investigate
|
||||||
allocations. (Anubhav Dhoot via ozawa)
|
allocations. (Anubhav Dhoot via ozawa)
|
||||||
|
|
||||||
|
YARN-3428. Debug log resources to be localized for a container. (kasha)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
||||||
|
|
|
@ -448,6 +448,10 @@ public class ResourceLocalizationService extends CompositeService
|
||||||
.getApplicationId());
|
.getApplicationId());
|
||||||
for (LocalResourceRequest req : e.getValue()) {
|
for (LocalResourceRequest req : e.getValue()) {
|
||||||
tracker.handle(new ResourceRequestEvent(req, e.getKey(), ctxt));
|
tracker.handle(new ResourceRequestEvent(req, e.getKey(), ctxt));
|
||||||
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Localizing " + req.getPath() +
|
||||||
|
" for container " + c.getContainerId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -456,11 +460,15 @@ public class ResourceLocalizationService extends CompositeService
|
||||||
ResourceRetentionSet retain =
|
ResourceRetentionSet retain =
|
||||||
new ResourceRetentionSet(delService, cacheTargetSize);
|
new ResourceRetentionSet(delService, cacheTargetSize);
|
||||||
retain.addResources(publicRsrc);
|
retain.addResources(publicRsrc);
|
||||||
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Resource cleanup (public) " + retain);
|
LOG.debug("Resource cleanup (public) " + retain);
|
||||||
|
}
|
||||||
for (LocalResourcesTracker t : privateRsrc.values()) {
|
for (LocalResourcesTracker t : privateRsrc.values()) {
|
||||||
retain.addResources(t);
|
retain.addResources(t);
|
||||||
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Resource cleanup " + t.getUser() + ":" + retain);
|
LOG.debug("Resource cleanup " + t.getUser() + ":" + retain);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//TODO Check if appRsrcs should also be added to the retention set.
|
//TODO Check if appRsrcs should also be added to the retention set.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue