(cloud-merge) Fix the coredump because of change_cache_type to origin_type#38518
(cloud-merge) Fix the coredump because of change_cache_type to origin_type#38518gavinchou merged 2 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
| } | ||
| 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.
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.
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.
warning: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]
| sp->set_call_back("FileBlock::change_cache_type", [](auto&& args) { | |
| h);auto * |
| fs::remove_all(cache_base_path); | ||
| } | ||
| fs::create_directories(cache_base_path); | ||
| auto sp = SyncPoint::get_instance(); |
There was a problem hiding this comment.
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.
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.
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. |
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 |
|
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.