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:
parent
72904c014d
commit
a1bebfd85e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue