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 @@ protected void registerWithRM()
|
|||||||
nodeManagerVersionId, containerReports, getRunningApplications(),
|
nodeManagerVersionId, containerReports, getRunningApplications(),
|
||||||
nodeLabels, physicalResource, nodeAttributes, nodeStatus);
|
nodeLabels, physicalResource, nodeAttributes, nodeStatus);
|
||||||
|
|
||||||
if (containerReports != null) {
|
if (containerReports != null && !containerReports.isEmpty()) {
|
||||||
LOG.info("Registering with RM using containers :" + containerReports);
|
LOG.info("Registering with RM using containers :" + containerReports);
|
||||||
}
|
}
|
||||||
if (logAggregationEnabled) {
|
if (logAggregationEnabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user