基于湖库一体架构,统一管理结构化、半结构化与非结构化等多模态数据,一个系统承载事务处理、实时分析与 AI 工作负载。
OBServer 日志报错 -4273
更新时间:2026-05-08 08:11
适用版本
OceanBase 数据库所有版本。
问题现象
OCP 告警中发现如下告警信息。
描述:[OCP告警通知] - 名称: OB日志告警 - 级别:严重 - 告警对象:ob_cluster=cl_p_ob_xc-100004:svr_ip=10.xx.xx.xxx:ob_error_code=4273 - 概述:[OB日志告警] cl_p_ob_xc-10.xx.xx.xxx OB_CACHE_FREE_BLOCK_NOT_ENOUGH - 生成时间: 2022-10-20T11:26:01+08:00 - 详情:[OB日志告警] 集群=cl_p_ob_xc, 机器=10.xx.xx.xxx, 错误码=4273, 错误名称=OB_CACHE_FREE_BLOCK_NOT_ENOUGH, 错误详情=[2022-10-20 11:25:29.146780] ERROR [COMMON] sync_wash_mbs (ob_kvcache_store.cpp:450) [68914][0][YB420A414094-0005E9E2702B8393-0-0] [lt=13] [dc=0] can not find enough memory block to wash(ret=-4273, size_washed=0, size_need_washed=2097152) BACKTRACE:0xf5f6bd5 0xf49023a 0x52e63ce 0x5420042 0x541fc7e 0x541f9e2 0x5423a08 0x5ea777b 0x5e98db2 0x5e98599 0xf444992 0xf60716b 0x50ec0f4 0x50ebd9f 0x50ebcf4 0x50ebc05 0x50eb3c8 0x50eb131 0x55a96c5 0x5122b3a 0xce80bee 0xce934c8 0xce9419d 0xce78939 0xce771e8 0xde5c087 0xde5b5a1 0xde6b1ad 0xde6c6ff 0xde6ce27 0xde8ceb8 0xde8c296 0xde8a378 0xc00c9c8 0xc07459c 0xe0b53b8 0xe0b4d35 0xe0ba28c 0xc1ab49b 0xe25ccb1 0x5253095 0x5156464 0x51003f2 0x50c85f9 0x50
问题原因
由告警信息中 can not find enough memory block to wash(ret=-4273) 排查是因为租户内存不足导致,具体排查方法,可参考文档 can not find enough memory block to wash,检查 OceanBase 数据库日志发现 MemStore 内存耗尽。
[2022-10-20 11:25:22.271600] INFO [LIB] ob_malloc_allocator.cpp:489 [67923][0][Y0-0000000000000000-0-0] [lt=5] [dc=0] [MEMORY] tenant: 1002, limit: 68,719,476,736 hold: 61,845,012,480 rpc_hold: 0 cache_hold: 9,563,013,120 cache_used: 9,563,013,120 cache_item_count: 4,560
observer.log.20221020112541-[MEMORY] ctx_id= DEFAULT_CTX_ID hold_bytes= 2,030,043,136
observer.log.20221020112541-[MEMORY] ctx_id= MEMSTORE_CTX_ID hold_bytes= [48,777,658,368
observer.log.20221020112541-[MEMORY] ctx_id= EXECUTE_CTX_ID hold_bytes= 16,777,216
observer.log.20221020112541-[MEMORY] ctx_id= SQL_EXEC_CTX_ID hold_bytes= 729,808,896
observer.log.20221020112541-[MEMORY] ctx_id= TRANS_CTX_MGR_ID hold_bytes= 16,777,216
observer.log.20221020112541-[MEMORY] ctx_id= REPLAY_STATUS_CTX_ID hold_bytes= 50,331,648
observer.log.20221020112541-[MEMORY] ctx_id= PLAN_CACHE_CTX_ID hold_bytes= 585,105,408
observer.log.20221020112541-[MEMORY] ctx_id= WORK_AREA hold_bytes= 16,777,216
observer.log.20221020112541-[MEMORY] ctx_id= TX_CALLBACK_CTX_ID hold_bytes= 56,623,104
解决方法
释放租户内存,建议修改租户内存限速参数 writing_throttling_trigger_percentage 为 80。
obclient> alter system set writing_throttling_trigger_percentage = 80 tenant = '<tenant nam>';