Explorar o código

YARN-10359. Log container report only if list is not empty. Contributed by Bilwa S T.

(cherry picked from commit 5323e83edfe63355ec38ffdaacc0c27d14cad31c)
bibinchundatt %!s(int64=4) %!d(string=hai) anos
pai
achega
a1bebfd85e

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeStatusUpdaterImpl.java

@@ -398,7 +398,7 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
               nodeManagerVersionId, containerReports, getRunningApplications(),
               nodeLabels, physicalResource, nodeAttributes, nodeStatus);
 
-      if (containerReports != null) {
+      if (containerReports != null && !containerReports.isEmpty()) {
         LOG.info("Registering with RM using containers :" + containerReports);
       }
       if (logAggregationEnabled) {