Skip to content

Commit

Permalink
branch-3.0: [feat](backup) Add config backup_handler_update_interval_…
Browse files Browse the repository at this point in the history
…millis #44628 (#44638)

Cherry-picked from #44628

Co-authored-by: walter <[email protected]>
  • Loading branch information
github-actions[bot] and w41ter authored Nov 27, 2024
1 parent 4994841 commit 78556da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public BackupHandler() {
}

public BackupHandler(Env env) {
super("backupHandler", 3000L);
super("backupHandler", Config.backup_handler_update_interval_millis);
this.env = env;
}

Expand Down

0 comments on commit 78556da

Please sign in to comment.