From 8a8793127b5d28701ab7d8e22d091573d9336dd6 Mon Sep 17 00:00:00 2001 From: huanghaibin Date: Fri, 22 Nov 2024 11:56:44 +0800 Subject: [PATCH] [improve](cloud-mow) Optimize log output when miss delete bitmap cache --- be/src/cloud/cloud_meta_mgr.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/be/src/cloud/cloud_meta_mgr.cpp b/be/src/cloud/cloud_meta_mgr.cpp index 5c699ae0159050..0a729f9d43b7b6 100644 --- a/be/src/cloud/cloud_meta_mgr.cpp +++ b/be/src/cloud/cloud_meta_mgr.cpp @@ -606,8 +606,9 @@ bool CloudMetaMgr::sync_tablet_delete_bitmap_by_cache(CloudTablet* tablet, int64 engine.txn_delete_bitmap_cache().remove_unused_tablet_txn_info(txn_id, tablet->tablet_id()); } else { - LOG(WARNING) << "failed to get tablet txn info. tablet_id=" << tablet->tablet_id() - << ", txn_id=" << txn_id << ", status=" << status; + LOG_EVERY_N(INFO, 20) + << "delete bitmap not found in cache, will sync rowset to get. tablet_id= " + << tablet->tablet_id() << ", txn_id=" << txn_id << ", status=" << status; return false; } } @@ -625,8 +626,6 @@ Status CloudMetaMgr::sync_tablet_delete_bitmap(CloudTablet* tablet, int64_t old_ if (sync_tablet_delete_bitmap_by_cache(tablet, old_max_version, rs_metas, delete_bitmap)) { return Status::OK(); } else { - LOG(WARNING) << "failed to sync delete bitmap by txn info. tablet_id=" - << tablet->tablet_id(); DeleteBitmapPtr new_delete_bitmap = std::make_shared(tablet->tablet_id()); *delete_bitmap = *new_delete_bitmap; }