yujun777 opened a new pull request, #66232:
URL: https://github.com/apache/doris/pull/66232

   ### What problem does this PR solve?
   
   When a task fails through the execution exception path, 
`AbstractTask.runTask()` calls the no-argument `onFail()`, which marked the 
task FAILED without recording `finishTimeMs`. MTMV failed refresh tasks 
therefore exposed an empty FinishTime and could not calculate DurationMs.
   
   ### What changes were made?
   
   - Record `finishTimeMs` when `AbstractTask.onFail()` transitions a task to 
FAILED.
   - Add a regression unit test covering the `runTask()` exception path and 
preserving the error message.
   
   ### Testing
   
   - `AbstractJobStatusTest`: 13 tests passed.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to