diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java index 4b3e5bc0a3e591..568cd7c817e756 100644 --- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java +++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java @@ -1612,6 +1612,12 @@ public class Config extends ConfigBase { @ConfField(mutable = true, masterOnly = true) public static boolean ignore_backup_not_support_table_type = false; + /** + * A internal config, to control the update interval of backup handler. Only used to speed up tests. + */ + @ConfField(mutable = false) + public static long backup_handler_update_interval_millis = 3000; + /** * Control the default max num of the instance for a user. */ diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java index 7cad2f985001bc..d70544add98747 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java +++ b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java @@ -122,7 +122,7 @@ public BackupHandler() { } public BackupHandler(Env env) { - super("backupHandler", 3000L); + super("backupHandler", Config.backup_handler_update_interval_millis); this.env = env; }