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

(cherry picked from commit 8f65c793f2)
This commit is contained in:
Jason Lowe 2015-05-04 15:31:15 +00:00
parent c64309f6ab
commit 99b49a8181
2 changed files with 6 additions and 2 deletions

View File

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

View File

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