Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public abstract class IcebergExternalCatalog extends ExternalCatalog {
public static final String ICEBERG_MANIFEST_CACHE_ENABLE = "iceberg.manifest.cache.enable";
public static final String ICEBERG_MANIFEST_CACHE_CAPACITY_MB = "iceberg.manifest.cache.capacity-mb";
public static final String ICEBERG_MANIFEST_CACHE_TTL_SECOND = "iceberg.manifest.cache.ttl-second";
public static final boolean DEFAULT_ICEBERG_MANIFEST_CACHE_ENABLE = true;
public static final boolean DEFAULT_ICEBERG_MANIFEST_CACHE_ENABLE = false;
public static final long DEFAULT_ICEBERG_MANIFEST_CACHE_CAPACITY_MB = 1024;
public static final long DEFAULT_ICEBERG_MANIFEST_CACHE_TTL_SECOND = 48 * 60 * 60;
protected String icebergCatalogType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ suite("test_iceberg_table_meta_cache", "p0,external,doris,external_docker,extern

String enabled = context.config.otherConfigs.get("enableIcebergTest")
if (enabled != null && enabled.equalsIgnoreCase("true")) {
for (String hivePrefix : ["hive2"]) {
for (String hivePrefix : ["hive3"]) {
String externalEnvIp = context.config.otherConfigs.get("externalEnvIp")
String hmsPort = context.config.otherConfigs.get(hivePrefix + "HmsPort")
String hdfs_port = context.config.otherConfigs.get(hivePrefix + "HdfsPort")
Expand All @@ -36,7 +36,8 @@ suite("test_iceberg_table_meta_cache", "p0,external,doris,external_docker,extern
'iceberg.catalog.type'='hms',
'hive.metastore.uris' = 'thrift://${externalEnvIp}:${hmsPort}',
'fs.defaultFS' = '${default_fs}',
'warehouse' = '${warehouse}'
'warehouse' = '${warehouse}',
'iceberg.manifest.cache.enable' = 'true'
);
"""
sql """switch ${catalog_name}"""
Expand Down Expand Up @@ -74,6 +75,7 @@ suite("test_iceberg_table_meta_cache", "p0,external,doris,external_docker,extern
'hive.metastore.uris' = 'thrift://${externalEnvIp}:${hmsPort}',
'fs.defaultFS' = '${default_fs}',
'warehouse' = '${warehouse}',
'iceberg.manifest.cache.enable' = 'false',
'iceberg.table.meta.cache.ttl-second' = '-2'
);
"""
Expand All @@ -88,6 +90,7 @@ suite("test_iceberg_table_meta_cache", "p0,external,doris,external_docker,extern
'hive.metastore.uris' = 'thrift://${externalEnvIp}:${hmsPort}',
'fs.defaultFS' = '${default_fs}',
'warehouse' = '${warehouse}',
'iceberg.manifest.cache.enable' = 'false',
'iceberg.table.meta.cache.ttl-second' = '0'
);
"""
Expand Down Expand Up @@ -122,7 +125,8 @@ suite("test_iceberg_table_meta_cache", "p0,external,doris,external_docker,extern
'iceberg.catalog.type'='hms',
'hive.metastore.uris' = 'thrift://${externalEnvIp}:${hmsPort}',
'fs.defaultFS' = '${default_fs}',
'warehouse' = '${warehouse}'
'warehouse' = '${warehouse}',
'iceberg.manifest.cache.enable' = 'false'
);
"""
sql """switch ${catalog_name_no_cache}"""
Expand Down Expand Up @@ -165,4 +169,3 @@ suite("test_iceberg_table_meta_cache", "p0,external,doris,external_docker,extern
}
}
}

Loading