From ff82e2ab5908f8a27fe3a9462faee7cde505b6fb Mon Sep 17 00:00:00 2001 From: huanghaibin <284824253@qq.com> Date: Thu, 8 Feb 2024 11:51:14 +0800 Subject: [PATCH] [improvement](group_commit) Add bvar to monitor the count of replaying wal fail on group commit (#30941) --- be/src/olap/wal/wal_table.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/olap/wal/wal_table.cpp b/be/src/olap/wal/wal_table.cpp index 9b2d1338f2..cb5f53508e 100644 --- a/be/src/olap/wal/wal_table.cpp +++ b/be/src/olap/wal/wal_table.cpp @@ -37,6 +37,8 @@ namespace doris { +bvar::Adder wal_fail("group_commit_wal_fail"); + WalTable::WalTable(ExecEnv* exec_env, int64_t db_id, int64_t table_id) : _exec_env(exec_env), _db_id(db_id), _table_id(table_id) { _http_stream_action = std::make_shared(exec_env); @@ -99,6 +101,7 @@ Status WalTable::_relay_wal_one_by_one() { wal_info->add_retry_num(); auto st = _replay_wal_internal(wal_info->get_wal_path()); if (!st.ok()) { + doris::wal_fail << 1; LOG(WARNING) << "failed to replay wal=" << wal_info->get_wal_path() << ", st=" << st.to_string(); if (!st.is()) {