首批通过分布式安全可靠测评,为关键业务系统打造
OBServer 告警:partition may be gc, but clog file still exist
更新时间:2026-07-24 10:01
适用版本
OceanBase 数据库 V2.x、V3.x 版本。
问题现象
OBServer 日志发现如下告警。
partition may be gc, but clog file still exist
问题原因
该问题原因一般为已经删除的表在 OceanBase 数据库视图中依然存在残留数据导致,残留信息可能是因为垃圾回收机制(GC)的回收任务在执行过程中发生意外,此时 __all_virtual_meta_table 中表现为单条记录(单副本)。
解决方法
在 SYS 租户,手动运行 check partition 作业。
obclient> ALTER SYSTEM RUN JOB 'check_partition_table' SERVER='xxx.xxx.xxx.xxx:2882';
在运行上述脚本前,可尝试调小 replica_safe_remove_time 参数。
关于参数 replica_safe_remove_time 具体如下。
| 属性 | 描述 |
|---|---|
| 参数说明 | 用于设置已删除副本可以被清理的安全保留时间。 |
| 参数类型 | 时间类型 |
| 默认值 | 2h |
| 取值范围 | [1m, +∞) |
| 是否重启 OBServer 生效 | 否 |