YARN-10359. Log container report only if list is not empty. Contributed by Bilwa S T.
This commit is contained in:
parent
a7fda2e38f
commit
5323e83edf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user