提交 8bd9721c 编写于 作者: M maosy 提交者: wangzelin.wzl

modify daily_merge error and forbid modify cluster_id and cluster

上级 0c581542
......@@ -1400,8 +1400,15 @@ void ObDailyMergeScheduler::check_merge_timeout()
} // end FOREACH(zone, zones)
const int64_t MAX_NO_MERGE_INTERVAL = 36 * 3600 * 1000 * 1000L; // 36 hours
if (now - max_last_merge_merged_time > MAX_NO_MERGE_INTERVAL &&
now - max_start_merge_time > MAX_NO_MERGE_INTERVAL) {
LOG_ERROR("long time no daily merge, please check it", K(ret));
now - max_start_merge_time > MAX_NO_MERGE_INTERVAL && !config_->major_freeze_duty_time.disable()) {
// if cluster can not daily merge, no need
if (REACH_TIME_INTERVAL(10 * 60 * 1000 * 1000)) {
LOG_ERROR("long time no daily merge, please check it",
KR(ret),
K(max_last_merge_merged_time),
K(max_start_merge_time),
K(zones));
}
}
}
}
......
......@@ -50,6 +50,8 @@ const char* const SSL_EXTERNAL_KMS_INFO = "ssl_external_kms_info";
const char* const ENABLE_ONE_PHASE_COMMIT = "enable_one_phase_commit";
const char* const CLOG_DISK_USAGE_LIMIT_PERCENTAGE = "clog_disk_usage_limit_percentage";
const char* const CLOG_DISK_UTILIZATION_THRESHOLD = "clog_disk_utilization_threshold";
const char *const CLUSTER_ID = "cluster_id";
const char *const CLUSTER_NAME = "cluster";
class ObServerConfig : public ObCommonConfig {
public:
......
......@@ -1724,6 +1724,10 @@ int ObSetConfigResolver::resolve(const ParseNode& parse_tree)
if (OB_FAIL(check_enable_log_archive(item.value_.str()))) {
LOG_WARN("cannot set enable log archive true", K(ret));
}
} else if (0 == STRCMP(item.name_.ptr(), CLUSTER_ID)) {
ret = OB_OP_NOT_ALLOW;
LOG_WARN("cluster_id is not allowed to modify");
LOG_USER_ERROR(OB_OP_NOT_ALLOW, "alter the parameter cluster_id");
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册