首批通过分布式安全可靠测评,为关键业务系统打造
SYS 租户三个节点重启后 RS 无主 Clog 提示 ret=-4030 问题处理
更新时间:2026-06-12 04:01
适用版本
OceanBase 数据库 V2.x、V3.x 版本。
问题描述
SYS 租户三个 OBServer 节点重启后,OBServer 日志报错如下。
fail to detect master rs(ret=-4121, ret='OB_RPC_SEDN_ERROR')
Clog 报错如下。
WARN [CLOG] receive_log (ob_partition_log_service.cpp:1314) [24210][1226][Y0-0000000000000000] [lt=18] [dc=0] tenant is out of memory, cannot receive log(ret=-4030, partition_key={tid:1099511628002, partition_id:0, part_cnt:0})
问题原因
发生 -4030: tenant is out of memory, cannot receive log 错误的原因通常有两个:
MemStore 内存爆,导致 clog 无法同步与回放。
clog 回放慢或卡住,导致 clog 滑动窗口发生积压,滑动窗口就满了后无法接收新的日志,reconfirm 也就无法正常执行下去。
解决方法
在本例中,出现该报错的原因是 clog 回放慢,因此需要调大配置参数 system_memory 来加快 clog 的回放,建议设置为 20G 及以上。
obclient [oceanbase]> alter system set system_memory='20G';
Query OK, 0 rows affected (0.018 sec)