This is an automated email from the ASF dual-hosted git repository.

w41ter pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 68e6cbf0334 branch-2.1: [feat](backup) Add config 
backup_handler_update_interval_millis #44628 (#44640)
68e6cbf0334 is described below

commit 68e6cbf0334170003204bf4ed84869f4ca36b59c
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Nov 28 18:43:48 2024 +0800

    branch-2.1: [feat](backup) Add config backup_handler_update_interval_millis 
#44628 (#44640)
    
    Cherry-picked from #44628
    
    Co-authored-by: walter <maoch...@selectdb.com>
---
 fe/fe-common/src/main/java/org/apache/doris/common/Config.java      | 6 ++++++
 fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

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 0afa1314c79..359d193a5ba 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
@@ -1589,6 +1589,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 5f2352afb11..4749bf7f619 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
@@ -121,7 +121,7 @@ public class BackupHandler extends MasterDaemon implements 
Writable {
     }
 
     public BackupHandler(Env env) {
-        super("backupHandler", 3000L);
+        super("backupHandler", Config.backup_handler_update_interval_millis);
         this.env = env;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to