You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/11/17 13:56:53 UTC

[incubator-linkis] branch dev-1.3.2 updated: linkis-application-manager - fix bug in method updateLabelsToNode in DefaultNodeLabelService (#3850)

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: 成彬彬 <10...@users.noreply.github.com>
AuthorDate: Thu Nov 17 21:56:48 2022 +0800

    linkis-application-manager - fix bug in method updateLabelsToNode in DefaultNodeLabelService (#3850)
    
    Co-authored-by: alexkun <xu...@qq.com>
---
 .../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: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org