YARN-10653. Fixed the findbugs issues introduced by YARN-10647. Contributed by
Qi Zhu (cherry picked from commit fcdb1e7fec45ded55e8b7fdc29f8caf85547cca3)
This commit is contained in:
parent
929411acce
commit
49375c0b53
@ -645,7 +645,7 @@ protected void internalUpdateLabelsOnNodes(
|
||||
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…
x
Reference in New Issue
Block a user