YARN-9968. Public Localizer is exiting in NodeManager due to NullPointerException. Contributed by Tarun Parimi

This commit is contained in:
Szilard Nemeth 2019-11-22 13:00:18 +01:00
parent c95e772d5d
commit df157211c9
1 changed files with 4 additions and 2 deletions

View File

@ -990,8 +990,10 @@ public class ResourceLocalizationService extends CompositeService
getLocalResourcesTracker(LocalResourceVisibility.APPLICATION, user, applicationId);
final String diagnostics = "Failed to download resource " +
assoc.getResource() + " " + e.getCause();
tracker.handle(new ResourceFailedLocalizationEvent(
assoc.getResource().getRequest(), diagnostics));
if(tracker != null) {
tracker.handle(new ResourceFailedLocalizationEvent(
assoc.getResource().getRequest(), diagnostics));
}
publicRsrc.handle(new ResourceFailedLocalizationEvent(
assoc.getResource().getRequest(), diagnostics));
LOG.error(diagnostics);