HomminLee commented on PR #13980: URL: https://github.com/apache/dolphinscheduler/pull/13980#issuecomment-1537112956
@fuchanghai I reproduce this BUG, according to https://github.com/apache/dolphinscheduler/issues/12440#issuecomment-1473026547. I'm sure this cause by resource id。 After debugger, I found the problem lies in three steps: 1. The resource files referenced by offline workflow could be deleted in Resource center, but the id of deleted resource files still be used when the workflow is edited and saved.  2. Before `submitTaskInstanceToDB`, will update resource info in task instance with no check exists, so throw NPE.  3. `submitTaskExec` will catch the exception, judge that this is cause submit failed and code go on. But task instance has not save to BD, so there are loop NPE logs.  -- 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]
