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

View File

@ -221,8 +221,10 @@ protected void internalUpdateAttributesOnNodes(
// 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));
}