-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix(flow): optimize flow submitter about exception handler #2431
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
krihy
added
type-bug
Something isn't working
enhancement
New feature or request
type-refactor
refactor code or rename variables
labels
May 20, 2024
yhilmare
changed the title
fix(flow): optimize flow submitter about exception handler
[WIP] fix(flow): optimize flow submitter about exception handler
May 20, 2024
👏 great job |
krihy
changed the title
[WIP] fix(flow): optimize flow submitter about exception handler
fix(flow): optimize flow submitter about exception handler
May 20, 2024
yizhouxw
reviewed
May 20, 2024
...c-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskResultContextHolder.java
Outdated
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskSubmitter.java
Outdated
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskSubmitter.java
Outdated
Show resolved
Hide resolved
yhilmare
reviewed
May 21, 2024
...c-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskResultContextHolder.java
Outdated
Show resolved
Hide resolved
...r/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/BaseODCFlowTaskDelegate.java
Show resolved
Hide resolved
...rvice/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskCallBackApprovalService.java
Show resolved
Hide resolved
...rvice/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskCallBackApprovalService.java
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskSubmitter.java
Show resolved
Hide resolved
yhilmare
reviewed
May 21, 2024
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/ExecutionEntityFacade.java
Outdated
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskCallBack.java
Outdated
Show resolved
Hide resolved
...rvice/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskCallBackApprovalService.java
Outdated
Show resolved
Hide resolved
...rvice/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskCallBackApprovalService.java
Outdated
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskSubmitter.java
Outdated
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/task/FlowTaskSubmitter.java
Outdated
Show resolved
Hide resolved
yhilmare
previously approved these changes
May 21, 2024
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.
lgtm
yhilmare
approved these changes
May 22, 2024
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.
lgtm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
type-bug
Something isn't working
type-refactor
refactor code or rename variables
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
What this PR does / why we need it:
optimize
FlowTaskSubmitter
about exception handler, ifBaseRuntimeFlowableDelegate
throw exception, we check theErrorEventDefinition
boundary with the node, if the boundary error code match with current exception, flowTaskCallBackApprovalService will approve the callback task with FAILED, otherwise approve with COMPLETED,by this pr flowTaskCallBackApprovalService do not care about the task type. and flowNode status update by
ExecutionListener
boundary by theErrorEventDefinition
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
this pr has test passed:
case1: when submit async task and cancel it , the flow status will be
CANCELED
case2: when submit a invalid sql async task, the flow status will be
FAILED
case3: when submit a normal sql async task, the flow status will be
COMPLETED
Additional documentation e.g., usage docs, etc.: