-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve](cloud) make tablet sync_rowsets async to reduce calculating delete bitmap time #35838
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 43750 ms |
TPC-DS: Total hot run time: 173280 ms |
ClickBench: Total hot run time: 30.11 s |
|
TeamCity be ut coverage result: |
c0992d9 to
5396dab
Compare
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40837 ms |
zhannngchen
left a comment
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
TPC-DS: Total hot run time: 172699 ms |
ClickBench: Total hot run time: 30.03 s |
|
TeamCity be ut coverage result: |
… delete bitmap time sync_rowsets may cost too much time, make sync_rowsets async can reduce more than 90% times on calculating delete bitmap time in publish phase.
5396dab to
91141d0
Compare
|
run buildall |
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.
clang-tidy made some suggestions
| } | ||
|
|
||
| void CloudTabletCalcDeleteBitmapTask::handle() const { | ||
| Status CloudTabletCalcDeleteBitmapTask::handle() const { |
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.
warning: function 'handle' exceeds recommended size/complexity thresholds [readability-function-size]
Status CloudTabletCalcDeleteBitmapTask::handle() const {
^Additional context
be/src/cloud/cloud_engine_calc_delete_bitmap_task.cpp:109: 84 lines including whitespace and comments (threshold 80)
Status CloudTabletCalcDeleteBitmapTask::handle() const {
^
TPC-H: Total hot run time: 40355 ms |
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 172208 ms |
ClickBench: Total hot run time: 30.71 s |
zhannngchen
left a comment
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
|
PR approved by at least one committer and no changes requested. |
… delete bitmap time (#35838) sync_rowsets may cost too much time, make sync_rowsets async can reduce more than 90% times on calculating delete bitmap time in publish phase.
…phase if compaction on other BE finished during this load (#37670) ## Proposed changes Due to #35838, when executing load job, BE will not `sync_rowsets()` in publish phase if a compaction job is finished on another BE on the same tablet between the commit phase and the publish phase of the current load job. This PR let the meta service return the tablet compaction stats along with the getDeleteBitmapUpdateLockResponse to FE and FE will send them to BE to let the BE know whether it should `sync_rowsets()` due to compaction on other BEs.
…phase if compaction on other BE finished during this load (#37670) ## Proposed changes Due to #35838, when executing load job, BE will not `sync_rowsets()` in publish phase if a compaction job is finished on another BE on the same tablet between the commit phase and the publish phase of the current load job. This PR let the meta service return the tablet compaction stats along with the getDeleteBitmapUpdateLockResponse to FE and FE will send them to BE to let the BE know whether it should `sync_rowsets()` due to compaction on other BEs.
…phase if compaction on other BE finished during this load (apache#37670) ## Proposed changes Due to apache#35838, when executing load job, BE will not `sync_rowsets()` in publish phase if a compaction job is finished on another BE on the same tablet between the commit phase and the publish phase of the current load job. This PR let the meta service return the tablet compaction stats along with the getDeleteBitmapUpdateLockResponse to FE and FE will send them to BE to let the BE know whether it should `sync_rowsets()` due to compaction on other BEs.
sync_rowsets may cost too much time, make sync_rowsets async can reduce more than 90% times on calculating delete bitmap time in publish phase.