Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
8bd9721c
O
oceanbase
项目概览
Metz
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
8bd9721c
编写于
8月 17, 2021
作者:
M
maosy
提交者:
wangzelin.wzl
8月 17, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify daily_merge error and forbid modify cluster_id and cluster
上级
0c581542
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
2 deletion
+15
-2
src/rootserver/ob_daily_merge_scheduler.cpp
src/rootserver/ob_daily_merge_scheduler.cpp
+9
-2
src/share/config/ob_server_config.h
src/share/config/ob_server_config.h
+2
-0
src/sql/resolver/cmd/ob_alter_system_resolver.cpp
src/sql/resolver/cmd/ob_alter_system_resolver.cpp
+4
-0
未找到文件。
src/rootserver/ob_daily_merge_scheduler.cpp
浏览文件 @
8bd9721c
...
@@ -1400,8 +1400,15 @@ void ObDailyMergeScheduler::check_merge_timeout()
...
@@ -1400,8 +1400,15 @@ void ObDailyMergeScheduler::check_merge_timeout()
}
// end FOREACH(zone, zones)
}
// end FOREACH(zone, zones)
const
int64_t
MAX_NO_MERGE_INTERVAL
=
36
*
3600
*
1000
*
1000L
;
// 36 hours
const
int64_t
MAX_NO_MERGE_INTERVAL
=
36
*
3600
*
1000
*
1000L
;
// 36 hours
if
(
now
-
max_last_merge_merged_time
>
MAX_NO_MERGE_INTERVAL
&&
if
(
now
-
max_last_merge_merged_time
>
MAX_NO_MERGE_INTERVAL
&&
now
-
max_start_merge_time
>
MAX_NO_MERGE_INTERVAL
)
{
now
-
max_start_merge_time
>
MAX_NO_MERGE_INTERVAL
&&
!
config_
->
major_freeze_duty_time
.
disable
())
{
LOG_ERROR
(
"long time no daily merge, please check it"
,
K
(
ret
));
// 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
));
}
}
}
}
}
}
}
...
...
src/share/config/ob_server_config.h
浏览文件 @
8bd9721c
...
@@ -50,6 +50,8 @@ const char* const SSL_EXTERNAL_KMS_INFO = "ssl_external_kms_info";
...
@@ -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
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_USAGE_LIMIT_PERCENTAGE
=
"clog_disk_usage_limit_percentage"
;
const
char
*
const
CLOG_DISK_UTILIZATION_THRESHOLD
=
"clog_disk_utilization_threshold"
;
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
{
class
ObServerConfig
:
public
ObCommonConfig
{
public:
public:
...
...
src/sql/resolver/cmd/ob_alter_system_resolver.cpp
浏览文件 @
8bd9721c
...
@@ -1724,6 +1724,10 @@ int ObSetConfigResolver::resolve(const ParseNode& parse_tree)
...
@@ -1724,6 +1724,10 @@ int ObSetConfigResolver::resolve(const ParseNode& parse_tree)
if
(
OB_FAIL
(
check_enable_log_archive
(
item
.
value_
.
str
())))
{
if
(
OB_FAIL
(
check_enable_log_archive
(
item
.
value_
.
str
())))
{
LOG_WARN
(
"cannot set enable log archive true"
,
K
(
ret
));
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录