-
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
(cloud-merge) Fix the coredump because of change_cache_type to origin_type #38518
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
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
} | ||
fs::create_directories(cache_base_path); | ||
auto sp = SyncPoint::get_instance(); | ||
sp->set_call_back("FileBlock::change_cache_type", [](auto&& args) { |
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: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]
sp->set_call_back("FileBlock::change_cache_type", [](auto&& args) { | |
h);auto * |
} | ||
|
||
TEST_F(BlockFileCacheTest, change_cache_type2) { | ||
if (fs::exists(cache_base_path)) { |
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 'TEST_F' exceeds recommended size/complexity thresholds [readability-function-size]
^
Additional context
be/test/io/cache/block_file_cache_test.cpp:4395: 86 lines including whitespace and comments (threshold 80)
^
} | ||
fs::create_directories(cache_base_path); | ||
auto sp = SyncPoint::get_instance(); | ||
sp->set_call_back("FileBlock::change_cache_type", [](auto&& args) { |
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: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]
sp->set_call_back("FileBlock::change_cache_type", [](auto&& args) { | |
h);auto * |
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
fs::remove_all(cache_base_path); | ||
} | ||
fs::create_directories(cache_base_path); | ||
auto sp = SyncPoint::get_instance(); |
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: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]
auto sp = SyncPoint::get_instance(); | |
h);auto * |
} | ||
} | ||
|
||
TEST_F(BlockFileCacheTest, change_cache_type2) { |
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 'TEST_F' exceeds recommended size/complexity thresholds [readability-function-size]
^
Additional context
be/test/io/cache/block_file_cache_test.cpp:4394: 86 lines including whitespace and comments (threshold 80)
^
fs::remove_all(cache_base_path); | ||
} | ||
fs::create_directories(cache_base_path); | ||
auto sp = SyncPoint::get_instance(); |
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: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]
auto sp = SyncPoint::get_instance(); | |
h);auto * |
TPC-H: Total hot run time: 41802 ms
|
TPC-DS: Total hot run time: 169618 ms
|
ClickBench: Total hot run time: 30.7 s
|
run cloud_p0 |
run cloud_p1 |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
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
ff8b957
to
8dfbaa2
Compare
run buildall |
TPC-H: Total hot run time: 41733 ms
|
TPC-DS: Total hot run time: 168317 ms
|
ClickBench: Total hot run time: 30.18 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
run p0 |
…_type (#38518) When call method `change_cache_type_by_mgr`, if the cache_type is same as change_type, it will return true directly and execute the next codes and break the old assumptions.
…_type (apache#38518) When call method `change_cache_type_by_mgr`, if the cache_type is same as change_type, it will return true directly and execute the next codes and break the old assumptions.
When call method
change_cache_type_by_mgr
, if the cache_type is same as change_type, it will return true directly and execute the next codes and break the old assumptions.