Skip to content

Commit

Permalink
YARN-10647. Fix TestRMNodeLabelsManager failed after YARN-10501. Cont…
Browse files Browse the repository at this point in the history
…ributed by

Qi Zhu.
  • Loading branch information
ericbadger authored and Kiran Kumar Maturi committed Nov 24, 2021
1 parent 0145be6 commit 24be512
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ protected void internalUpdateLabelsOnNodes(
host.labels.addAll(labels);
for (Node node : host.nms.values()) {
replaceNodeForLabels(node.nodeId, node.labels, labels);
replaceLabelsForNode(node.nodeId, node.labels, labels);
if (node.labels != null && labels != null) {
replaceLabelsForNode(node.nodeId, node.labels, labels);
}
node.labels = null;
}
break;
Expand Down

0 comments on commit 24be512

Please sign in to comment.