wank125 commented on PR #18676: URL: https://github.com/apache/dolphinscheduler/pull/18676#issuecomment-6244882830
Thanks for the review @ruanwenjun — addressed in 8cc040c: - `transformTask` keeps throwing its `ServiceException` with the precise reason (missing pre taskCodes, null taskType), and `checkWorkflowNodeList` now translates it to the new `Status.WORKFLOW_DAG_IS_INVALID(50082)` instead of wrapping everything into `TASK_DEFINE_NOT_EXIST`. The message states that task definitions are missing and names the codes. I kept a narrow catch (only the service-layer `ServiceException`) because it is not handled by `ApiExceptionHandler`, so letting it propagate would surface as INTERNAL_SERVER_ERROR — happy to drop the translation entirely if you prefer that trade-off. - The relation/definition consistency checks in `WorkflowDefinitionServiceImpl` now use `WORKFLOW_DAG_IS_INVALID` as well, with the missing task codes in the message. - The raw `workflowTaskRelationJson` is no longer logged in the error path, which also resolves the CodeQL log-injection alert. - Regression suite (54 tests in `WorkflowDefinitionServiceTest`, 22 in `WorkflowInstanceServiceTest`) passes; `spotless:check` passes. -- 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]
