Fix case and remove yuque links

This commit is contained in:
wanhong.wwh
2023-03-09 10:41:41 +00:00
committed by ob-robot
parent 51c2177230
commit 5fa334e240
6 changed files with 8 additions and 9 deletions

View File

@ -91,8 +91,9 @@ int ObServerUtils::cal_all_part_disk_size(const int64_t suggested_data_disk_size
{
int ret = OB_SUCCESS;
// background information about default disk percentage
// https://yuque.antfin-inc.com/ob/rootservice/buzmfz
// background information about default disk percentage:
// If not in shared mode, disk will be used up to 90%.
// If in shared mode, data and clog disk usage will be up to 60% and 30%
const int64_t DEFAULT_DISK_PERCENTAGE_IN_SEPRATE_MODE = 90;
const int64_t DEFAULT_DATA_DISK_PERCENTAGE_IN_SHARED_MODE = 60;
const int64_t DEFAULT_CLOG_DISK_PERCENTAGE_IN_SHARED_MODE = 30;

View File

@ -494,7 +494,7 @@ int ObService::get_min_sstable_schema_version(
for (int i = 0; OB_SUCC(ret) && i < arg.tenant_id_arg_list_.size(); ++i) {
// The minimum schema_version used by storage will increase with the major version,
// storage only need to keep schema history used by a certain number major version.
// For storage, there is no need to the server level statistics: https://yuque.antfin-inc.com/ob/rootservice/feqqfr
// For storage, there is no need to the server level statistics.
// min_schema_version = scheduler.get_min_schema_version(arg.tenant_id_arg_list_.at(i));
int tmp_ret = OB_SUCCESS;
const uint64_t tenant_id = arg.tenant_id_arg_list_.at(i);
@ -1840,7 +1840,8 @@ int ObService::detect_master_rs_ls(
}
} else if (replica.is_strong_leader()) {
// case 2 : replica is leader, do not use in_service to check whether it is leader or not
// use in_service could lead to bad case: https://yuque.antfin.com/ob/rootservice/pbw2qw
// use in_service could lead to bad case:
// For more info, to see docs on yuque rootservice/pbw2qw
if (OB_FAIL(generate_master_rs_ls_info_(replica, ls_info))) {
LOG_WARN("generate master rs ls info failed", KR(ret), K(replica), K(ls_info));
} else if (OB_FAIL(result.init(ObRole::LEADER, master_rs, replica, ls_info))) {

View File

@ -177,7 +177,6 @@ cal_version(const uint64_t major, const uint64_t minor, const uint64_t major_pat
// 1. After 4.0, each cluster_version is corresponed to a data version.
// 2. cluster_version and data_version is not compariable.
// 3. TODO: If you update data_version below, please update DATA_CURRENT_VERSION & ObUpgradeChecker too.
// For more detail: https://yuque.antfin-inc.com/ob/rootservice/xywr36
#define DATA_VERSION_4_0_0_0 (oceanbase::common::cal_version(4, 0, 0, 0))
#define DATA_VERSION_4_1_0_0 (oceanbase::common::cal_version(4, 1, 0, 0))

View File

@ -31,7 +31,7 @@ DEF_STR(redundancy_level, OB_CLUSTER_PARAMETER, "NORMAL",
"HIGH: tolerate two disk failure if disk count is enough",
ObParameterAttr(Section::SSTABLE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE))
// background information about disk space configuration
// https://yuque.antfin-inc.com/ob/rootservice/buzmfz
// ObServerUtils::get_data_disk_info_in_config()
DEF_CAP(datafile_size, OB_CLUSTER_PARAMETER, "0", "[0M,)", "size of the data file. Range: [0, +∞)",
ObParameterAttr(Section::SSTABLE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(datafile_disk_percentage, OB_CLUSTER_PARAMETER, "0", "[0,99]",

View File

@ -2224,8 +2224,7 @@ int ObMultiVersionSchemaService::async_refresh_schema(
/*
* 1. If tenant_id is OB_INVALID_TENANT_ID, it means refresh the schema of all tenants,
* otherwise only the schema of the corresponding tenant will be refreshed.
* 2. The new schema_version broadcast mechanism does not support the read-only zone scheme. For details, see:
* https://yuque.antfin-inc.com/ob/rootservice/gxom1e
* 2. The new schema_version broadcast mechanism does not support the read-only zone scheme.
* 3. When refreshing the schema, you must first obtain the schema_version version
* that each tenant wants to refresh from the internal table:
* 1) For system tenants of the primary cluster and standalone cluster, the schema refresh is strengthened

View File

@ -142,7 +142,6 @@ public:
// 1. tenant_schema_version is the schema_version of the corresponding tenant
// 2. sys_schema_version is the schema_version of the system tenant. For system tenants,
// the value will be reset to tenant_schema_version
// https://yuque.antfin-inc.com/ob/rootservice/gxom1e
virtual int get_tenant_schema_guard(const uint64_t tenant_id,
ObSchemaGetterGuard &guard,
int64_t tenant_schema_version = common::OB_INVALID_VERSION,