do not change the default of _max_trx_size while bootstrap

This commit is contained in:
hnwyllmm
2022-06-30 16:16:57 +08:00
committed by wangzelin.wzl
parent 0cb4c948c8
commit 5c14a191e9
4 changed files with 40 additions and 2 deletions

View File

@ -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