Browse Source

fix this issue (#7828)

3.0.0/version-upgrade
calvin 3 years ago committed by GitHub
parent
commit
a8d19f271a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

8
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

@ -900,9 +900,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
List<ProcessTaskRelationLog> processTaskRelationList = new ArrayList<>(); List<ProcessTaskRelationLog> processTaskRelationList = new ArrayList<>();
// for Zip Bomb Attack // for Zip Bomb Attack
int THRESHOLD_ENTRIES = 10000; final int THRESHOLD_ENTRIES = 10000;
int THRESHOLD_SIZE = 1000000000; // 1 GB final int THRESHOLD_SIZE = 1000000000; // 1 GB
double THRESHOLD_RATIO = 10; final double THRESHOLD_RATIO = 10;
int totalEntryArchive = 0; int totalEntryArchive = 0;
int totalSizeEntry = 0; int totalSizeEntry = 0;
// In most cases, there will be only one data source // In most cases, there will be only one data source
@ -1166,6 +1166,8 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
} }
processDefinition.setLocations(newArrayNode.toString()); processDefinition.setLocations(newArrayNode.toString());
} }
processDefinition.setCreateTime(new Date());
processDefinition.setUpdateTime(new Date());
Map<String, Object> createDagResult = createDagDefine(loginUser, taskRelationLogList, processDefinition, Lists.newArrayList()); Map<String, Object> createDagResult = createDagDefine(loginUser, taskRelationLogList, processDefinition, Lists.newArrayList());
if (Status.SUCCESS.equals(createDagResult.get(Constants.STATUS))) { if (Status.SUCCESS.equals(createDagResult.get(Constants.STATUS))) {
putMsg(createDagResult, Status.SUCCESS); putMsg(createDagResult, Status.SUCCESS);

Loading…
Cancel
Save