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