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

(cherry picked from commit 5323e83edf)
This commit is contained in:
bibinchundatt 2020-08-01 13:03:46 +05:30 committed by Brahma Reddy Battula
parent 72904c014d
commit a1bebfd85e
1 changed files with 1 additions and 1 deletions

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) {