YARN-10653. Fixed the findbugs issues introduced by YARN-10647. Contributed by
Qi Zhu
This commit is contained in:
parent
ac37ca0b67
commit
fcdb1e7fec
|
@ -646,7 +646,7 @@ 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) {
|
||||
if (node.labels != null) {
|
||||
replaceLabelsForNode(node.nodeId, node.labels, labels);
|
||||
}
|
||||
node.labels = null;
|
||||
|
|
Loading…
Reference in New Issue