YARN-8988. Reduce the verbose log on RM heartbeat path when distributed node-attributes is enabled. Contributed by Tao Yang.

This commit is contained in:
Weiwei Yang 2018-11-08 17:47:18 +08:00
parent f8c72d7b3a
commit e1bbf7dcdf
1 changed files with 4 additions and 2 deletions

View File

@ -221,8 +221,10 @@ public class NodeAttributesManagerImpl extends NodeAttributesManager {
// Notify RM
if (rmContext != null && rmContext.getDispatcher() != null) {
LOG.info("Updated NodeAttribute event to RM:" + newNodeToAttributesMap
.values());
if (LOG.isDebugEnabled()) {
LOG.debug("Updated NodeAttribute event to RM:"
+ newNodeToAttributesMap.values());
}
rmContext.getDispatcher().getEventHandler().handle(
new NodeAttributesUpdateSchedulerEvent(newNodeToAttributesMap));
}