From bef57bde5ab465f5836ae770faa551ab3c541189 Mon Sep 17 00:00:00 2001 From: sky <740051880@qq.com> Date: Sun, 29 Aug 2021 17:20:24 +0800 Subject: [PATCH] fix create task definition bug (#6050) --- .../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 b8de610499..1a078dc7e4 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 {