You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/12/05 02:13:41 UTC

[GitHub] [dolphinscheduler] jieguangzhou commented on a diff in pull request #13077: [Bug] [task retry] Clone retry task Instance missing id field

jieguangzhou commented on code in PR #13077:
URL: https://github.com/apache/dolphinscheduler/pull/13077#discussion_r1039087164


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java:
##########
@@ -422,7 +422,6 @@ private void addProcessStopEvent(ProcessInstance processInstance) {
     private void addTaskRetryEvent(TaskInstance taskInstance) {
         TaskStateEvent stateEvent = TaskStateEvent.builder()
                 .processInstanceId(taskInstance.getProcessInstanceId())
-                .taskInstanceId(taskInstance.getId())

Review Comment:
   We only use the task instance Id to print logs in the TaskRetryStateEventHandler.
   If an existing task instance id is set when the task is retried, no new task instance will be created
   
   This is pr solved by setting the id: #13074, and I closed it because I think the new one is simpler to fix the bug.
   
   WDYT?



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org