lordk911 opened a new issue, #10679:
URL: https://github.com/apache/dolphinscheduler/issues/10679

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   a dependent task node (tA) depend on one scheduled process's (pB) task (tB) 
. I don't know for what reason, the depend on task(tB) blocked, so I kill the 
process (pB), then the killed process (pB) didn't have a endTime , after 
manually start process (pB), the task node (tA) still be blocked , the error 
log in master is : 
   ```
   org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread:[689] 
- submit standby task error
   java.lang.NullPointerException: null
           at java.util.Date.getMillisOf(Date.java:958)
           at java.util.Date.after(Date.java:931)
           at 
org.apache.dolphinscheduler.server.utils.DependentExecute.findLastProcessInterval(DependentExecute.java:204)
           at 
org.apache.dolphinscheduler.server.utils.DependentExecute.calculateResultForTasks(DependentExecute.java:110)
           at 
org.apache.dolphinscheduler.server.utils.DependentExecute.getDependentResultForItem(DependentExecute.java:95)
           at 
org.apache.dolphinscheduler.server.utils.DependentExecute.getDependResultForItem(DependentExecute.java:288)
           at 
org.apache.dolphinscheduler.server.utils.DependentExecute.getModelDependResult(DependentExecute.java:266)
           at 
org.apache.dolphinscheduler.server.utils.DependentExecute.finish(DependentExecute.java:249)
           at 
org.apache.dolphinscheduler.server.master.runner.task.DependentTaskProcessor.allDependentTaskFinish(DependentTaskProcessor.java:190)
           at 
org.apache.dolphinscheduler.server.master.runner.task.DependentTaskProcessor.runTask(DependentTaskProcessor.java:103)
           at 
org.apache.dolphinscheduler.server.master.runner.task.BaseTaskProcessor.run(BaseTaskProcessor.java:183)
           at 
org.apache.dolphinscheduler.server.master.runner.task.BaseTaskProcessor.action(BaseTaskProcessor.java:168)
           at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitTaskExec(WorkflowExecuteThread.java:666)
           at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitStandByTask(WorkflowExecuteThread.java:1394)
           at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.submitPostNode(WorkflowExecuteThread.java:930)
           at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.startProcess(WorkflowExecuteThread.java:544)
           at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread.run(WorkflowExecuteThread.java:239)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at 
com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
           at 
com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
           at 
com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   ```
   the code throw the Exception is : 
   `return 
(lastManualProcess.getEndTime().after(lastSchedulerProcess.getEndTime())) ? 
lastManualProcess : lastSchedulerProcess;`
   
   
   
   ### What you expected to happen
   
   if the metadata is wrong , exception should be handled
   
   ### How to reproduce
   
   just remove one t_ds_process_instance record's end_time ,and set some task 
depend on it
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.5
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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