Oceanbase-failed to merge partition

一、背景

收到了oceanabse的报警,查看错误码发现这种为重试,一般无需关注,如果后续持续告警需要关注

bash 复制代码
日志级别:WDIAG,关键字=failed to merge partition,错误码=4023

二、排查与处理

本着学习的精神,我们也看下是否自动成功

1.查看对应时间的合并记录

通过合并历史查看,可以确定 merge 已经在下次成功了

bash 复制代码
SELECT tenant_id, ls_id, tablet_id, type,        start_time, finish_time,        execute_time,        comments FROM GV$OB_TABLET_COMPACTION_HISTORY WHERE tenant_id = 1002   AND start_time between "2026-04-22 07:37:00" and "2026-04-22 07:45:00" ORDER BY start_time DESC LIMIT 200;

三、其他补充查询

1.Memstore 内存使用

sql 复制代码
SELECT svr_ip, tenant_id,
       round(active_span   /1024/1024/1024, 2) AS active_gb,
       round(freeze_trigger/1024/1024/1024, 2) AS freeze_trigger_gb,
       round(memstore_used /1024/1024/1024, 2) AS memstore_used_gb,
       round(memstore_limit/1024/1024/1024, 2) AS memstore_limit_gb,
       freeze_cnt
FROM GV$OB_MEMSTORE
WHERE tenant_id = 1002;

2.compaction 整体进度

sql 复制代码
SELECT tenant_id, type, zone, status,
       total_tablet_count,
       unfinished_tablet_count,
       start_time,
       estimated_finish_time,
       comments
FROM GV$OB_COMPACTION_PROGRESS
WHERE tenant_id = 1002;

3.tablet级别compaction 进度

sql 复制代码
SELECT tenant_id, ls_id, tablet_id, type, status,
       create_time, start_time, estimated_finish_time
FROM GV$OB_TABLET_COMPACTION_PROGRESS
WHERE tenant_id = 1002;
相关推荐
云贝贝贝3 天前
OceanBase认证体系介绍与备考指南
运维·服务器·oceanbase·1024程序员节
OceanBase数据库官方博客3 天前
让 DRP全域数据智能流转OceanBase AI 数据库支撑央国企落地穿透式监
数据库·人工智能·oceanbase
云贝教育-郑老师3 天前
揭开极速引擎的面纱,OceanBase 单分区事务 (局部事务) 的“一阶段”生死狂飙
学习·oceanbase
marvelyu4 天前
每天10分钟学会OceanBase系列(Day 19):数据库备份与恢复实战——给数据上”保险”
数据库·oracle·oceanbase
颜挺锐4 天前
如何提取ob数据库中30个分区下不同分区的数据,简单实操
数据库·oceanbase
云贝教育-郑老师6 天前
OceanBase 是如何搞定海量数据分片(Sharding)的?
学习·oceanbase·dba
OceanBase数据库官方博客9 天前
OceanBase DataPilot AIP:Ontology 承载AI能力面的另一条路
人工智能·oceanbase
spencer_tseng10 天前
oceanbase-4.3.5.5-105020022025121200.el7.x86_64.rpm
linux·oceanbase·kylin
OceanBase数据库官方博客1 个月前
OceanBase DataStudio:让 AI数据生产从拼装走向一体化(技术解析与
人工智能·oceanbase
Database_Cool_1 个月前
阿里云 PolarDB-X vs OceanBase 国产分布式数据库深度对比
分布式·阿里云·oceanbase