-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[feature-wip](Cloud) Support set default storage vault and pass vault id to all write paths #32910
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
8c6e386
to
b69b26f
Compare
clang-tidy review says "All clean, LGTM! 👍" |
3 similar comments
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
77e4237
to
cf3849f
Compare
clang-tidy review says "All clean, LGTM! 👍" |
2 similar comments
clang-tidy review says "All clean, LGTM! 👍" |
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.
clang-tidy made some suggestions
7dc41f3
to
147df6d
Compare
gensrc/proto/cloud.proto
Outdated
@@ -1379,6 +1398,8 @@ service MetaService { | |||
|
|||
// routine load progress | |||
rpc get_rl_task_commit_attach(GetRLTaskCommitAttachRequest) returns (GetRLTaskCommitAttachResponse); | |||
|
|||
rpc get_default_vault(GetDefaultVaultRequest) returns (GetDefaultVaultResponse); |
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.
no need this rpc
clang-tidy review says "All clean, LGTM! 👍" |
2 similar comments
clang-tidy review says "All clean, LGTM! 👍" |
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.
clang-tidy made some suggestions
@@ -5426,6 +5426,210 @@ TEST(MetaServiceTest, DropHdfsInfoTest) { | |||
SyncPoint::get_instance()->clear_all_call_backs(); | |||
} | |||
|
|||
TEST(MetaServiceTest, GetDefaultVaultTest) { |
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' exceeds recommended size/complexity thresholds [readability-function-size]
TEST(MetaServiceTest, GetDefaultVaultTest) {
^
Additional context
cloud/test/meta_service_test.cpp:5428: 99 lines including whitespace and comments (threshold 80)
TEST(MetaServiceTest, GetDefaultVaultTest) {
^
hdfs.mutable_build_conf()->CopyFrom(conf); | ||
req.mutable_hdfs_info()->CopyFrom(hdfs); | ||
|
||
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(); | |
auto *sp = SyncPoint::get_instance(); |
instance.add_obj_info()->CopyFrom(obj_info); | ||
req.mutable_obj_info()->CopyFrom(obj_info); | ||
|
||
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(); | |
auto *sp = SyncPoint::get_instance(); |
} | ||
} | ||
|
||
TEST(MetaServiceTest, SetDefaultVaultTest) { |
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' exceeds recommended size/complexity thresholds [readability-function-size]
TEST(MetaServiceTest, SetDefaultVaultTest) {
^
Additional context
cloud/test/meta_service_test.cpp:5529: 101 lines including whitespace and comments (threshold 80)
TEST(MetaServiceTest, SetDefaultVaultTest) {
^
hdfs.mutable_build_conf()->CopyFrom(conf); | ||
req.mutable_hdfs_info()->CopyFrom(hdfs); | ||
|
||
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(); | |
auto *sp = SyncPoint::get_instance(); |
// Try to set one non-existent vault as default | ||
{ | ||
StorageVaultPB hdfs; | ||
auto name = "test_alter_add_hdfs_info_no"; |
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 name' can be declared as 'const auto *name' [readability-qualified-auto]
auto name = "test_alter_add_hdfs_info_no"; | |
const auto *name = "test_alter_add_hdfs_info_no"; |
run buildall |
TPC-H: Total hot run time: 38186 ms
|
TPC-DS: Total hot run time: 182617 ms
|
ClickBench: Total hot run time: 29.62 s
|
TeamCity be ut coverage result: |
run buildall |
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 38247 ms
|
TPC-DS: Total hot run time: 182768 ms
|
ClickBench: Total hot run time: 29.33 s
|
78b6819
to
c1175cb
Compare
run buildall |
TPC-H: Total hot run time: 39315 ms
|
TPC-DS: Total hot run time: 181692 ms
|
TeamCity be ut coverage result: |
ClickBench: Total hot run time: 31.11 s
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
}); | ||
|
||
if (s3_obj != instance.obj_info().end()) { | ||
response->set_storage_vault_id(s3_obj->id()); |
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.
should we also just set storage_vault_id in tablet meta?
run buildall |
TPC-H: Total hot run time: 39031 ms
|
TPC-DS: Total hot run time: 181070 ms
|
ClickBench: Total hot run time: 29.52 s
|
TeamCity be ut coverage result: |
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
} while (true); | ||
|
||
CHECK(!vault_infos.empty()) << "no vault infos"; | ||
} while (vault_infos.empty()); |
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.
while true and remember to clear vault_info each iteration
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
PR approved by at least one committer and no changes requested. |
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...