YARN-7647. NM print inappropriate error log when node-labels is enabled. Contributed by Yang Wang.
This commit is contained in:
parent
2abab1d7c5
commit
7efc4f7688
|
@ -1028,9 +1028,12 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
|
|||
public void verifyRMHeartbeatResponseForNodeLabels(
|
||||
NodeHeartbeatResponse response) {
|
||||
if (areLabelsSentToRM) {
|
||||
if (response.getAreNodeLabelsAcceptedByRM() && LOG.isDebugEnabled()) {
|
||||
LOG.debug("Node Labels {" + StringUtils.join(",", previousNodeLabels)
|
||||
+ "} were Accepted by RM ");
|
||||
if (response.getAreNodeLabelsAcceptedByRM()) {
|
||||
if(LOG.isDebugEnabled()){
|
||||
LOG.debug(
|
||||
"Node Labels {" + StringUtils.join(",", previousNodeLabels)
|
||||
+ "} were Accepted by RM ");
|
||||
}
|
||||
} else {
|
||||
// case where updated labels from NodeLabelsProvider is sent to RM and
|
||||
// RM rejected the labels
|
||||
|
|
Loading…
Reference in New Issue