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:
parent
c64309f6ab
commit
99b49a8181
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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()) {
|
||||||
|
LOG.debug("Recovering localized resource " + req + " at "
|
||||||
+ proto.getLocalPath());
|
+ proto.getLocalPath());
|
||||||
|
}
|
||||||
tracker.handle(new ResourceRecoveredEvent(req,
|
tracker.handle(new ResourceRecoveredEvent(req,
|
||||||
new Path(proto.getLocalPath()), proto.getSize()));
|
new Path(proto.getLocalPath()), proto.getSize()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue