[improvement](meta) allow to ignore unknown image module (#25450)

Add new FE config `ignore_unknown_metadata_module`. Default is false.
If set to true, when reading metadata image file, and there are unknown modules, these modules
will be ignored and skipped.
This is mainly used in downgrade operation, old version can be compatible with new version Image file.
This commit is contained in:
Mingyu Chen
2023-10-17 22:53:31 +08:00
committed by GitHub
parent 18c2a13e09
commit b76e23fb34
2 changed files with 27 additions and 3 deletions

View File

@ -2244,6 +2244,7 @@ public class Config extends ConfigBase {
+ "If this database conflicts with a user's own database, please modify this field to replace "
+ "the name of the Doris built-in MySQL database with a different name."})
public static String mysqldb_replace_name = "mysql";
@ConfField(description = {
"设置允许跨域访问的特定域名,默认允许任何域名跨域访问",
"Set the specific domain name that allows cross-domain access. "
@ -2251,4 +2252,17 @@ public class Config extends ConfigBase {
})
public static String access_control_allowed_origin_domain = "*";
@ConfField(description = {
"是否忽略 Image 文件中未知的模块。如果为 true,不在 PersistMetaModules.MODULE_NAMES 中的元数据模块将被忽略并跳过。"
+ "默认为 false,如果 Image 文件中包含未知的模块,Doris 将会抛出异常。"
+ "该参数主要用于降级操作中,老版本可以兼容新版本的 Image 文件。",
"Whether to ignore unknown modules in Image file. "
+ "If true, metadata modules not in PersistMetaModules.MODULE_NAMES "
+ "will be ignored and skipped. Default is false, if Image file contains unknown modules, "
+ "Doris will throw exception. "
+ "This parameter is mainly used in downgrade operation, "
+ "old version can be compatible with new version Image file."
})
public static boolean ignore_unknown_metadata_module = false;
}