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

This commit is contained in:
bibinchundatt 2020-08-01 13:03:46 +05:30
parent a7fda2e38f
commit 5323e83edf

View File

@ -398,7 +398,7 @@ protected void registerWithRM()
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) {