[fix](Azure)Fix Azure endpoint detection for sovereign clouds with force-global config support#60903
[fix](Azure)Fix Azure endpoint detection for sovereign clouds with force-global config support#60903CalvinKirs wants to merge 3 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
1 similar comment
|
run buildall |
TPC-H: Total hot run time: 28716 ms |
TPC-DS: Total hot run time: 183370 ms |
| } | ||
|
|
||
| private static final String AZURE_ENDPOINT_SUFFIX = ".blob.core.windows.net"; | ||
| private static final String[] AZURE_ACCOUNT_KEY_ENDPOINTS = { |
There was a problem hiding this comment.
why not read from config?
Making it configurable with default list will make it extensible.
aec50bb to
40b746a
Compare
|
run buildall |
# Conflicts: # fe/fe-common/src/main/java/org/apache/doris/common/Config.java
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 29005 ms |
|
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: 184631 ms |
| if (s3_conf.endpoint.find("://") == std::string::npos) { | ||
| uri = "https://" + uri; | ||
| } | ||
| std::string uri = fmt::format("{}/{}", s3_conf.endpoint, container_name); |
There was a problem hiding this comment.
strip the trailing / of the URI to increase robustness
There was a problem hiding this comment.
If necessary, this should be placed in normalized_uri.
| if (uri_.find("://") == std::string::npos) { | ||
| uri_ = "https://" + uri_; | ||
| } | ||
| uri_ = fmt::format("{}/{}", conf_.endpoint, conf_.bucket); |
| }) | ||
| public static boolean force_azure_blob_global_endpoint = false; | ||
| public static String[] azure_blob_host_suffixes = { | ||
| ".blob.core.windows.net", |
There was a problem hiding this comment.
do we need to keep both
.dfs and .blob?
why not sth like just core.winodows.com?
There was a problem hiding this comment.
This is required by the HDFS style guidelines.
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
FE Regression Coverage ReportIncrement line coverage |
…
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)