-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[fix](cloud-mow) MS should delete the existing keys before rewriting it when processing old version delete bitmap on cu compaction #42379
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: 41147 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 192399 ms
|
ClickBench: Total hot run time: 32.27 s
|
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
run buildall |
TPC-H: Total hot run time: 41566 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 191310 ms
|
ClickBench: Total hot run time: 32.43 s
|
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
@@ -1853,6 +1856,143 @@ void MetaServiceImpl::update_delete_bitmap(google::protobuf::RpcController* cont | |||
<< " total_size=" << total_size << " unlock=" << unlock; | |||
} | |||
|
|||
void MetaServiceImpl::update_delete_bitmap2(google::protobuf::RpcController* controller, |
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 'update_delete_bitmap2' exceeds recommended size/complexity thresholds [readability-function-size]
void MetaServiceImpl::update_delete_bitmap2(google::protobuf::RpcController* controller,
^
Additional context
cloud/src/meta-service/meta_service.cpp:1858: 132 lines including whitespace and comments (threshold 80)
void MetaServiceImpl::update_delete_bitmap2(google::protobuf::RpcController* controller,
^
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
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
1 similar comment
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
…itmap when doing cu compaction
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 41591 ms
|
TPC-DS: Total hot run time: 197711 ms
|
ClickBench: Total hot run time: 32.38 s
|
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. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 41684 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 196504 ms
|
ClickBench: Total hot run time: 32.66 s
|
PR approved by at least one committer and no changes requested. |
pr #40204 support deleting old version delete bitmap when doing cu compaction, it will update delete bitmap with agg result, then deleting old version delete bitmap. Updating delete bitmap means overwriting existing keys, however delete bitmap may split into multiple kvs to store in fdb, so we should delete the existing keys and rewrite it to fdb instead of overwriting directly.