YARN-10647. Fix TestRMNodeLabelsManager failed after YARN-10501. Contributed by
Qi Zhu.
(cherry picked from commit 47420ae3ed
)
This commit is contained in:
parent
b1085bc874
commit
4ef5ed382b
|
@ -645,7 +645,9 @@ public class CommonNodeLabelsManager extends AbstractService {
|
|||
host.labels.addAll(labels);
|
||||
for (Node node : host.nms.values()) {
|
||||
replaceNodeForLabels(node.nodeId, node.labels, labels);
|
||||
if (node.labels != null && labels != null) {
|
||||
replaceLabelsForNode(node.nodeId, node.labels, labels);
|
||||
}
|
||||
node.labels = null;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue