This is an automated email from the ASF dual-hosted git repository. gavinchou pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit e3e39fa62c2879599ed33642a518cc685255eddc Author: wuwenchi <wuwenchi...@hotmail.com> AuthorDate: Wed Aug 28 17:12:24 2024 +0800 [bugfix](paimon)Use the fs cache, otherwise it will cause OOM (#38552) ## Proposed changes When cache is not used, a new `com.aliyun.oss.ClientConfiguration` is created each time, causing OOM --- .../java/org/apache/doris/datasource/property/PropertyConverter.java | 1 - .../org/apache/doris/datasource/property/PropertyConverterTest.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/property/PropertyConverter.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/property/PropertyConverter.java index 11e87e376a6..69c786f023f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/property/PropertyConverter.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/property/PropertyConverter.java @@ -318,7 +318,6 @@ public class PropertyConverter { endpoint = endpoint.replace(OssProperties.OSS_PREFIX, ""); } ossProperties.put(org.apache.hadoop.fs.aliyun.oss.Constants.ENDPOINT_KEY, endpoint); - ossProperties.put("fs.oss.impl.disable.cache", "true"); ossProperties.put("fs.oss.impl", getHadoopFSImplByScheme("oss")); boolean hdfsEnabled = Boolean.parseBoolean(props.getOrDefault(OssProperties.OSS_HDFS_ENABLED, "false")); if (LocationPath.isHdfsOnOssEndpoint(endpoint) || hdfsEnabled) { diff --git a/fe/fe-core/src/test/java/org/apache/doris/datasource/property/PropertyConverterTest.java b/fe/fe-core/src/test/java/org/apache/doris/datasource/property/PropertyConverterTest.java index 48903df17bc..c9f96a79161 100644 --- a/fe/fe-core/src/test/java/org/apache/doris/datasource/property/PropertyConverterTest.java +++ b/fe/fe-core/src/test/java/org/apache/doris/datasource/property/PropertyConverterTest.java @@ -483,7 +483,7 @@ public class PropertyConverterTest extends TestWithFeService { + " 'oss.secret_key' = 'skk'\n" + ");"; testS3CompatibleCatalogProperties(catalogName1, OssProperties.OSS_PREFIX, - "oss.oss-cn-beijing.aliyuncs.com", query1, 12, 17); + "oss.oss-cn-beijing.aliyuncs.com", query1, 12, 16); String catalogName2 = "hms_minio"; String query2 = "create catalog " + catalogName2 + " properties (\n" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org