【 使用环境 】POC测试环境
【 OB or 其他组件 】 OB
【 使用版本 】ob4.3.5.1
【问题描述】
1.租户增加复本由4个副本调整到5个副本报错如下:
obclient(root@(none))[oceanbase]> ALTER TENANT bk_test locality=“FULL{1}@zone1, FULL{1}@zone2, FULL{1}@zone3,FULL{1}@zone4, FULL{1}@zone5”;
ERROR 1210 (HY000): Incorrect arguments to locality, zone name illegal
obclient(root@(none))[oceanbase]> select last_trace_id();
±----------------------------------+
| last_trace_id() |
±----------------------------------+
| YB420A100B02-00063352052FCD88-0-0 |
±----------------------------------+
1 row in set (0.003 sec)
2.相关信息:
3.备注:
原集群 3个zone 使用ocp 扩展了zone4 ,zone5 使用ocp 在zone4上添加了副本正常,手工执行ALTER TENANT bk_test locality=“FULL{1}@zone1, FULL{1}@zone2, FULL{1}@zone3,FULL{1}@zone4, FULL{1}@zone5”; 报错如上。
4.traceid:YB420A100B02-00063352052FCD88-0-0 报错:
observer.log.20250716102102829:[2025-07-16 10:18:58.737560] INFO [SHARE.SCHEMA] serialize_ (ob_schema_struct.cpp:2156) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=23] serialize schema(tenant_id=18446744073709551615, schema_version=1, tenant_name=bk_test, primary_zone=, locked=false, comment=, charset_type=0, collation_type=0, name_case_mode=-1, locality_str=FULL{1}@zone1, FULL{1}@zone2, FULL{1}@zone3,FULL{1}@zone4, FULL{1}@zone5, primary_zone_array=[], default_tablegroup_id=18446744073709551615, default_tablegroup_name=, drop_tenant_time=-1, in_recyclebin=false, arbitration_service_status={status:3}, ret=0)
observer.log.20250716102102829:[2025-07-16 10:18:58.748254] WDIAG [RPC] send (ob_poc_rpc_proxy.h:176) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=69][errcode=-4002] execute rpc fail(addr=“10.16.11.2:2882”, pcode=528, ret=-4002, timeout=999999653)
observer.log.20250716102102829:[2025-07-16 10:18:58.748320] WDIAG log_user_error_and_warn (ob_poc_rpc_proxy.cpp:247) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=53][errcode=-4002] Incorrect arguments to locality, zone name illegal
observer.log.20250716102102829:[2025-07-16 10:18:58.748351] WDIAG [SQL.ENG] execute (ob_tenant_executor.cpp:728) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=17][errcode=-4002] rpc proxy modify tenant failed(ret=-4002)
observer.log.20250716102102829:[2025-07-16 10:18:58.748513] INFO [SHARE] add_event (ob_event_history_table_operator.h:266) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=26] event table add task(ret=0, event_table_name="_all_server_event_history", sql=INSERT INTO all_server_event_history (gmt_create, module, event, name1, value1, name2, value2, name3, value3, name4, value4, value5, value6, svr_ip, svr_port) VALUES (usec_to_time(1752632338748385), ‘sql’, ‘execute_cmd’, ‘cmd_type’, 11, ‘sql_text’, X’414C5445522054454E414E5420626B5F74657374206C6F63616C6974793D2246554C4C7B317D407A6F6E65312C2046554C4C7B317D407A6F6E65322C2046554C4C7B317D407A6F6E6533EFBC8C46554C4C7B317D407A6F6E65342C2046554C4C7B317D407A6F6E653522’, ‘return_code’, -4002, ‘tenant_id’, 1, ‘’, ‘’, ‘xx.xx.xx.2’, 2882))
observer.log.20250716102102829:[2025-07-16 10:18:58.748568] WDIAG [SQL] open_cmd (ob_result_set.cpp:68) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=43][errcode=-4002] execute cmd failed(ret=-4002)
observer.log.20250716102102829:[2025-07-16 10:18:58.748599] WDIAG [SQL] open (ob_result_set.cpp:127) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=26][errcode=-4002] execute plan failed(ret=-4002)
observer.log.20250716102102829:[2025-07-16 10:18:58.748619] WDIAG [SERVER] response_result (ob_sync_cmd_driver.cpp:139) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=13][errcode=-4002] close result set fail(cret=-4002)
observer.log.20250716102102829:[2025-07-16 10:18:58.748649] WDIAG [SERVER] after_func (ob_query_retry_ctrl.cpp:1068) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=24][errcode=-4002] [RETRY] check if need retry(v={force_local_retry:false, stmt_retry_times:0, local_retry_times:0, err:-4002, err:“OB_INVALID_ARGUMENT”, retry_type:0, client_ret:-4002}, need_retry=false)
observer.log.20250716102102829:[2025-07-16 10:18:58.748693] WDIAG [SERVER] response_result (ob_sync_cmd_driver.cpp:145) [9489][T1_L0_G0][T1][YB420A100B02-00063352052FCD88-0-0] [lt=37][errcode=-4002] result set open failed, check if need retry(ret=-4002, cli_ret=-4002, retry_ctrl.need_retry()=0)
@
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!