-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] [dolphinscheduler-master] fix WorkflowExecuteRunnable's executeTask method return incorrect value #15741
base: dev
Are you sure you want to change the base?
Conversation
Right now, pause task will also use this method to submit, and should return false, this change will influence the whole process. Is there a case to reproduce this bug? |
if you can use my unit test to reproduce this bug, or close the db or simulate the db Fault when call submitTask in debug mode |
@@ -908,7 +908,7 @@ private boolean executeTask(TaskInstance taskInstance) { | |||
// todo: remove this method | |||
if (!processService.submitTask(workflowInstance, taskInstance)) { | |||
log.error("Submit standby task: {} failed", taskInstance.getName()); | |||
return true; | |||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that it should return false if it submits to DB failed, not sure if there are other considerations.
but there is also a todo here. cc @ruanwenjun
will we remove this method or fix this logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better not to change this logic unless we find a bug related to this issue. When the workflow instance is READY_STOP, it will also submit the task, but will return false here to avoid dispatch the task.
Purpose of the pull request
This pull request to fix #15740 , fix the method return incorrect value problem.
please check the issue out for details
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md