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

leonbao pushed a commit to branch json_split_two
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/json_split_two by this push:
     new bef57bd  fix create task definition bug (#6050)
bef57bd is described below

commit bef57bde5ab465f5836ae770faa551ab3c541189
Author: sky <[email protected]>
AuthorDate: Sun Aug 29 17:20:24 2021 +0800

    fix create task definition bug (#6050)
---
 .../dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java    | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
index b8de610..1a078dc 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
@@ -148,8 +148,6 @@ public class TaskDefinitionServiceImpl extends 
BaseServiceImpl implements TaskDe
             taskDefinitionLog.setUserId(loginUser.getId());
             taskDefinitionLog.setVersion(1);
             taskDefinitionLog.setCreateTime(now);
-            totalSuccessCode.add(taskDefinitionLog.getCode());
-            newTaskDefinitionLogs.add(taskDefinitionLog);
             if (taskDefinitionLog.getCode() == 0) {
                 long code;
                 try {

Reply via email to