Browse Source

YARN-8174. Add containerId to ResourceLocalizationService fetch failure log statement. Contributed by Prabhu Joseph.

Abhishek Modi 6 years ago
parent
commit
b939ae98e6

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/ResourceLocalizationService.java

@@ -1185,7 +1185,7 @@ public class ResourceLocalizationService extends CompositeService
             break;
             break;
           case FETCH_FAILURE:
           case FETCH_FAILURE:
             final String diagnostics = stat.getException().toString();
             final String diagnostics = stat.getException().toString();
-            LOG.warn(req + " failed: " + diagnostics);
+            LOG.warn("{} failed for {} : {}", req, localizerId, diagnostics);
             fetchFailed = true;
             fetchFailed = true;
             tracker.handle(new ResourceFailedLocalizationEvent(req,
             tracker.handle(new ResourceFailedLocalizationEvent(req,
                 diagnostics));
                 diagnostics));