caishunfeng commented on a change in pull request #6592:
URL: https://github.com/apache/dolphinscheduler/pull/6592#discussion_r735057759



##########
File path: 
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
##########
@@ -849,6 +849,8 @@ private boolean checkAndImport(User loginUser, long 
projectCode, Map<String, Obj
         }
         String processDefinitionName = 
recursionProcessDefinitionName(projectCode, processDefinition.getName(), 1);
         processDefinition.setName(processDefinitionName + "_import_" + 
DateUtils.getCurrentTimeStamp());
+        processDefinition.setId(0);

Review comment:
       In this case, the processDefinition had old id when import, so it should 
clean the old id explicitly.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to