【 使用环境 】 测试环境, OS: CentOS Linux release 7.6.1810 (Core)
【 OB or 其他组件 】
【 使用版本 】4.2.1.0
【问题描述】
使用4.2.1.0, 下面命令自动安装
obd cluster autodeploy obtest -c single-example.yaml
当ob启动后, 硬盘灯一直闪, 使用iostat查看
%util 都在20左右;
查看 observer.log 里面, 有大量的 errcode=0] cost too much time;
// -----------------------------------------------------------------------------------------------------
[2023-12-09 15:25:08.335253] WDIAG [STORAGE] ~ObOccamTimeGuard (ob_occam_time_guard.h:269) [1671][T1_MINI_MERGE][T1][YB427F000001-00060C0E2B994F9B-0-0] [lt=86][errcode=0] cost too much time:ob_tablet_persister.cpp:static int oceanbase::storage::ObTabletPersister::persist_and_fill_tablet(const oceanbase::storage::ObTablet &, common::ObArenaAllocator &, common::ObIArray &, common::ObIArray<ObShar…, (*this=|threshold=10.00ms|start at 15:25:08.301|273=1us|280=18.75ms|282=14us|total=33.68ms)
[2023-12-09 15:25:08.335302] WDIAG [STORAGE] ~ObOccamTimeGuard (ob_occam_time_guard.h:269) [1671][T1_MINI_MERGE][T1][YB427F000001-00060C0E2B994F9B-0-0] [lt=43][errcode=0] cost too much time:ob_tablet_persister.cpp:static int oceanbase::storage::ObTabletPersister::recursively_persist(const oceanbase::storage::ObTablet &, common::ObArenaAllocator &, common::ObIArray &, common::ObIArray<ObSharedBl…, (*this=|threshold=10.00ms|start at 15:25:08.301|131=0us|total=33.72ms)
[2023-12-09 15:25:08.335828] WDIAG [STORAGE] ~ObOccamTimeGuard (ob_occam_time_guard.h:269) [1671][T1_MINI_MERGE][T1][YB427F000001-00060C0E2B994F9B-0-0] [lt=32][errcode=0] cost too much time:ob_tablet_persister.cpp:static int oceanbase::storage::ObTabletPersister::persist_and_transform_tablet(const oceanbase::storage::ObTablet &, oceanbase::storage::ObTabletHandle &), (*this=|threshold=10.00ms|start at 15:25:08.301|109=1us|111=33.73ms|113=10us|total=34.27ms)
[2023-12-09 15:25:08.368054] WDIAG [STORAGE] ~ObOccamTimeGuard (ob_occam_time_guard.h:269) [1671][T1_MINI_MERGE][T1][YB427F000001-00060C0E2B994F9B-0-0] [lt=57][errcode=0] cost too much time:ob_tablet_slog_helper.cpp:static int oceanbase::storage::ObTabletSlogHelper::write_update_tablet_slog(const share::ObLSID &, const common::ObTabletID &, const oceanbase::storage::ObMetaDiskAddr &), (*this=|threshold=10.00ms|start at 15:25:08.335|44=1us|52=15.33ms|56=16.82ms|total=32.22ms)
// -----------------------------------------------------------------------------------------------------
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):