kezhenxu94 commented on code in PR #11929:
URL: https://github.com/apache/dolphinscheduler/pull/11929#discussion_r970547441


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java:
##########
@@ -903,7 +903,8 @@ protected int 
createComplementDependentCommand(List<Schedule> schedules, Command
         List<DependentProcessDefinition> dependentProcessDefinitionList =
                 
getComplementDependentDefinitionList(dependentCommand.getProcessDefinitionCode(),
                         CronUtils.getMaxCycle(schedules.get(0).getCrontab()), 
dependentCommand.getWorkerGroup());
-
+        // If the id is Integer, the auto-increment id will be obtained and 
cloned, causing duplicate writes

Review Comment:
   > Before using int, mybtais-plus did not fill in the id field, it default 
use 0, but after being changed to Integer, it will fill it for auto-increment 
id.
   
   OK I see, this is a really strange behavior for mybatis-plus...



-- 
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