This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.3.2
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.3.2 by this push:
     new 3f4d3fae1 linkis-application-manager - fix bug in method 
updateLabelsToNode in DefaultNodeLabelService (#3850)
3f4d3fae1 is described below

commit 3f4d3fae125ab2de13e19e690369e9f263f34b54
Author: 成彬彬 <[email protected]>
AuthorDate: Thu Nov 17 21:56:48 2022 +0800

    linkis-application-manager - fix bug in method updateLabelsToNode in 
DefaultNodeLabelService (#3850)
    
    Co-authored-by: alexkun <[email protected]>
---
 .../linkis/manager/label/service/impl/DefaultNodeLabelService.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/label/service/impl/DefaultNodeLabelService.scala
 
b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/label/service/impl/DefaultNodeLabelService.scala
index 8982bb9a4..644c87572 100644
--- 
a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/label/service/impl/DefaultNodeLabelService.scala
+++ 
b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/label/service/impl/DefaultNodeLabelService.scala
@@ -135,7 +135,7 @@ class DefaultNodeLabelService extends NodeLabelService with 
Logging {
      * update step:
      * 1.delete relations of old labels 2.add new relation between new labels 
and instance
      */
-    if (null != willBeDelete && willBeDelete.nonEmpty) {
+    if (null != willBeUpdate && willBeUpdate.nonEmpty) {
       labels.asScala.foreach(label => {
         if (
             modifiableKeyList.contains(label.getLabelKey) && willBeUpdate


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to