YARN-3097. Logging of resource recovery on NM restart has redundancies. Contributed by Eric Payne

This commit is contained in:
Jason Lowe 2015-05-04 15:31:15 +00:00
parent bb9ddef0e7
commit 8f65c793f2
2 changed files with 6 additions and 2 deletions

View File

@ -296,6 +296,8 @@ Release 2.8.0 - UNRELEASED
YARN-1993. Cross-site scripting vulnerability in TextView.java. (Kenji Kikushima
via ozawa)
YARN-3097. Logging of resource recovery on NM restart has redundancies
(Eric Payne via jlowe)
Release 2.7.1 - UNRELEASED

View File

@ -303,8 +303,10 @@ public class ResourceLocalizationService extends CompositeService
for (LocalizedResourceProto proto : state.getLocalizedResources()) {
LocalResource rsrc = new LocalResourcePBImpl(proto.getResource());
LocalResourceRequest req = new LocalResourceRequest(rsrc);
LOG.info("Recovering localized resource " + req + " at "
+ proto.getLocalPath());
if (LOG.isDebugEnabled()) {
LOG.debug("Recovering localized resource " + req + " at "
+ proto.getLocalPath());
}
tracker.handle(new ResourceRecoveredEvent(req,
new Path(proto.getLocalPath()), proto.getSize()));
}