diff --git a/src/rootserver/ob_daily_merge_scheduler.cpp b/src/rootserver/ob_daily_merge_scheduler.cpp index f53014954001a210c12bbbf8190b65cf7d797097..aa3e822e53495a3c279c601a3f1f90f7daa223d0 100644 --- a/src/rootserver/ob_daily_merge_scheduler.cpp +++ b/src/rootserver/ob_daily_merge_scheduler.cpp @@ -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)); + } } } } diff --git a/src/share/config/ob_server_config.h b/src/share/config/ob_server_config.h index 24beb1196f78146d60e42d13bb78012b7b4a3fdd..7d87be9a55c6f683584a5e6e70f74025dcf1955e 100644 --- a/src/share/config/ob_server_config.h +++ b/src/share/config/ob_server_config.h @@ -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: diff --git a/src/sql/resolver/cmd/ob_alter_system_resolver.cpp b/src/sql/resolver/cmd/ob_alter_system_resolver.cpp index 3825ced04f3b9d60c3494300bc894cda3e46ae6a..4475a38d086d5add8e8caa11577f4bd22297ea37 100644 --- a/src/sql/resolver/cmd/ob_alter_system_resolver.cpp +++ b/src/sql/resolver/cmd/ob_alter_system_resolver.cpp @@ -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"); } } }