[chore](recover) add a config to recover remaining data in emergency (#18986)

This commit is contained in:
Zhengguo Yang
2023-04-28 17:42:00 +08:00
committed by GitHub
parent 365ac54102
commit 43e70ab252
4 changed files with 67 additions and 1 deletions

View File

@ -1439,6 +1439,20 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static boolean recover_with_empty_tablet = false;
/**
* In some scenarios, there is an unrecoverable metadata problem in the cluster,
* and the visibleVersion of the data does not match be. In this case, it is still
* necessary to restore the remaining data (which may cause problems with the correctness of the data).
* This configuration is the same as` recover_with_empty_tablet` should only be used in emergency situations
* This configuration has three values:
* disable : If an exception occurs, an error will be reported normally.
* ignore_version: ignore the visibleVersion information recorded in fe partition, use replica version
* ignore_all: In addition to ignore_version, when encountering no queryable replica,
* skip it directly instead of throwing an exception
*/
@ConfField(mutable = true, masterOnly = true)
public static String recover_with_skip_missing_version = "disable";
/**
* Whether to add a delete sign column when create unique table
*/