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.
   
![1683367133680](https://user-images.githubusercontent.com/25881185/236617423-9191c993-4cdd-4ef7-b8c8-1bd01f110e40.jpg)
   
   2. Before `submitTaskInstanceToDB`, will update resource info in task 
instance with no check exists, so throw NPE.
   
![1683364568613](https://user-images.githubusercontent.com/25881185/236617433-f6f70a25-0a62-4519-80cf-a7861ba371d0.jpg)
   
   
   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.
   
![1683364661997](https://user-images.githubusercontent.com/25881185/236617441-3dcecb61-427b-48a3-8bec-0145e119dd49.jpg)


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