[fix](restore) Add restore_reset_index_id config #45283 (#45574)

cherry pick from #45283
This commit is contained in:
walter
2024-12-18 22:45:53 +08:00
committed by GitHub
parent 1980e098bc
commit fca9c91193
4 changed files with 206 additions and 1 deletions

View File

@ -1574,6 +1574,15 @@ public class Config extends ConfigBase {
@ConfField(mutable = false)
public static boolean enable_restore_snapshot_rpc_compression = true;
/**
* A internal config, to indicate whether to reset the index id when restore olap table.
*
* The inverted index saves the index id in the file path/header, so the index id between
* two clusters must be the same.
*/
@ConfField(mutable = true, masterOnly = true)
public static boolean restore_reset_index_id = true;
/**
* Control the max num of tablets per backup job involved.
*/