Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
soremi
oceanbase
提交
5c14a191
O
oceanbase
项目概览
soremi
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5c14a191
编写于
6月 30, 2022
作者:
羽飞
提交者:
wangzelin.wzl
6月 30, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
do not change the default of _max_trx_size while bootstrap
上级
0cb4c948
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
2 deletion
+40
-2
src/rootserver/ob_root_service.cpp
src/rootserver/ob_root_service.cpp
+2
-2
tools/upgrade/upgrade_checker.py
tools/upgrade/upgrade_checker.py
+6
-0
tools/upgrade/upgrade_post.py
tools/upgrade/upgrade_post.py
+16
-0
tools/upgrade/upgrade_pre.py
tools/upgrade/upgrade_pre.py
+16
-0
未找到文件。
src/rootserver/ob_root_service.cpp
浏览文件 @
5c14a191
...
...
@@ -2853,8 +2853,8 @@ int ObRootService::execute_bootstrap(const obrpc::ObBootstrapArg& arg)
LOG_WARN
(
"failed to update baseline schema version"
,
K
(
ret
));
}
else
if
(
OB_FAIL
(
global_proxy
.
get_baseline_schema_version
(
frozen_version
,
baseline_schema_version_
)))
{
LOG_WARN
(
"fail to get baseline schema version"
,
KR
(
ret
));
}
else
if
(
OB_FAIL
(
set_max_trx_size_config
()))
{
LOG_WARN
(
"fail to set max trx size config"
,
K
(
ret
));
//
} else if (OB_FAIL(set_max_trx_size_config())) {
//
LOG_WARN("fail to set max trx size config", K(ret));
}
else
if
(
OB_FAIL
(
set_1pc_config
()))
{
LOG_WARN
(
"fail to set one phase commit config"
,
K
(
ret
));
}
else
if
(
OB_FAIL
(
set_enable_oracle_priv_check
()))
{
...
...
tools/upgrade/upgrade_checker.py
浏览文件 @
5c14a191
...
...
@@ -597,6 +597,11 @@ def check_duplicate_index_name_in_mysql(query_cur, cur):
if
(
len
(
results
)
!=
0
)
:
raise
MyError
(
"Duplicate index name exist in mysql tenant"
)
# 31. check the _max_trx_size
def
check_max_trx_size_config
(
query_cur
,
cur
):
set_parameter
(
cur
,
'_max_trx_size'
,
'100G'
)
logging
.
info
(
'set _max_trx_size to default value 100G'
)
# 开始升级前的检查
def
do_check
(
my_host
,
my_port
,
my_user
,
my_passwd
,
upgrade_params
):
try
:
...
...
@@ -631,6 +636,7 @@ def do_check(my_host, my_port, my_user, my_passwd, upgrade_params):
check_sys_table_leader
(
query_cur
)
check_and_modify_px_query
(
query_cur
,
cur
)
check_duplicate_index_name_in_mysql
(
query_cur
,
cur
)
check_max_trx_size_config
(
query_cur
,
cur
)
except
Exception
,
e
:
logging
.
exception
(
'run error'
)
raise
e
...
...
tools/upgrade/upgrade_post.py
浏览文件 @
5c14a191
...
...
@@ -8130,6 +8130,21 @@
# if (len(results) != 0) :
# raise MyError("Duplicate index name exist in mysql tenant")
#
## 31. check the _max_trx_size
#def check_max_trx_size_config(query_cur, cur):
# (desc, results) = query_cur.exec_query(
# """
# select distinct(value) from __all_sys_parameter where name like '_max_trx_size'
# """)
# if len(results) != 1:
# raise MyError("failed to get config of _max_trx_size")
#
# if results[0][0] == '100M':
# set_parameter(cur, '_max_trx_size', '100G')
# logging.info('set _max_trx_size to default value 100G')
# else:
# logging.info('leave _max_trx_size untouch ' + str(results[0][0]))
#
## 开始升级前的检查
#def do_check(my_host, my_port, my_user, my_passwd, upgrade_params):
# try:
...
...
@@ -8164,6 +8179,7 @@
# check_sys_table_leader(query_cur)
# check_and_modify_px_query(query_cur, cur)
# check_duplicate_index_name_in_mysql(query_cur, cur)
# check_max_trx_size_config(query_cur, cur)
# except Exception, e:
# logging.exception('run error')
# raise e
...
...
tools/upgrade/upgrade_pre.py
浏览文件 @
5c14a191
...
...
@@ -8130,6 +8130,21 @@
# if (len(results) != 0) :
# raise MyError("Duplicate index name exist in mysql tenant")
#
## 31. check the _max_trx_size
#def check_max_trx_size_config(query_cur, cur):
# (desc, results) = query_cur.exec_query(
# """
# select distinct(value) from __all_sys_parameter where name like '_max_trx_size'
# """)
# if len(results) != 1:
# raise MyError("failed to get config of _max_trx_size")
#
# if results[0][0] == '100M':
# set_parameter(cur, '_max_trx_size', '100G')
# logging.info('set _max_trx_size to default value 100G')
# else:
# logging.info('leave _max_trx_size untouch ' + str(results[0][0]))
#
## 开始升级前的检查
#def do_check(my_host, my_port, my_user, my_passwd, upgrade_params):
# try:
...
...
@@ -8164,6 +8179,7 @@
# check_sys_table_leader(query_cur)
# check_and_modify_px_query(query_cur, cur)
# check_duplicate_index_name_in_mysql(query_cur, cur)
# check_max_trx_size_config(query_cur, cur)
# except Exception, e:
# logging.exception('run error')
# raise e
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录