-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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](delete) Fix delete job timeout when executing delete from ...
#37363
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
delete from ...
delete from ...
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
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
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
delete from ...
delete from ...
TPC-H: Total hot run time: 40016 ms
|
TPC-DS: Total hot run time: 174526 ms
|
ClickBench: Total hot run time: 30.25 s
|
run external |
run cloud_p1 |
ae828d4
to
8fed24e
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 39709 ms
|
TPC-DS: Total hot run time: 171308 ms
|
ClickBench: Total hot run time: 30.23 s
|
run p0 |
…#37363) ## Proposed changes Currently, when FE execute delete job, it will send `REALTIME_PUSH` task to all affected replicas and **wait for all asynchronous tasks sent to the backend to return successful status results** or until timeout(which is at least 30s for delete job). If some replica failed to do the job and report an error for the task to FE, FE will retry the task to that replica. However, for some errors like `DELETE_INVALID_CONDITION`/`DELETE_INVALID_PARAMETERS`, we should fail and abort the delete job on FE directly and report the errors to users, rather than keep retrying in vain. So this PR let the delete job fail and abort directly on FE and report the errors to users if FE receives an above error from BE.
Proposed changes
Currently, when FE execute delete job, it will send
REALTIME_PUSH
task to all affected replicas and wait for all asynchronous tasks sent to the backend to return successful status results or until timeout(which is at least 30s for delete job). If some replica failed to do the job and report an error for the task to FE, FE will retry the task to that replica. However, for some errors likeDELETE_INVALID_CONDITION
/DELETE_INVALID_PARAMETERS
, we should fail and abort the delete job on FE directly and report the errors to users, rather than keep retrying in vain.So this PR let the delete job fail and abort directly on FE and report the errors to users if FE receives an above error from BE.
branch-2.1-pick: #37374