zhuangchong opened a new pull request, #18734:
URL: https://github.com/apache/dolphinscheduler/pull/18734

   ## Purpose of the pull request
   
   Fixes #18733.
   
   Switching to a non-current workflow version queried the main workflow-task 
relation table before the switch. Because that table only contains the current 
version, the empty relation result caused 
`TaskDefinitionLogMapper.queryByTaskDefinitions` to execute without task 
predicates and scan all task definition logs.
   
   ## Brief change log
   
   - Query workflow-task relation logs for the target workflow version before 
permission validation.
   - Skip the task-definition query when the target version has no task 
relations.
   - Add regression coverage for target-version relation selection and empty 
relation lists.
   
   ## Verify this pull request
   
   - [x] Added and updated unit tests for the changed behavior.
   - [x] Ran `WorkflowDefinitionServiceTest` with JDK 11.


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