From cdc92097fb1d417af4d5ca74e14a152f050bdb9a Mon Sep 17 00:00:00 2001 From: meiyi Date: Fri, 17 Jan 2025 16:45:44 +0800 Subject: [PATCH] [improve](log) sync_tablet_rowsets show tablet_id --- be/src/cloud/cloud_meta_mgr.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/be/src/cloud/cloud_meta_mgr.cpp b/be/src/cloud/cloud_meta_mgr.cpp index 99c0805b9b92a3..b4e26fc19bdb9c 100644 --- a/be/src/cloud/cloud_meta_mgr.cpp +++ b/be/src/cloud/cloud_meta_mgr.cpp @@ -510,12 +510,13 @@ Status CloudMetaMgr::sync_tablet_rowsets(CloudTablet* tablet, bool warmup_delta_ return Status::InternalError("failed to get rowset meta: {}", resp.status().msg()); } if (latency > 100 * 1000) { // 100ms - LOG(INFO) << "finish get_rowset rpc. rowset_meta.size()=" << resp.rowset_meta().size() + LOG(INFO) << "finish get_rowset rpc. tablet_id=" << tablet_id + << ", rowset_meta.size()=" << resp.rowset_meta().size() << ", latency=" << latency << "us"; } else { - LOG_EVERY_N(INFO, 100) - << "finish get_rowset rpc. rowset_meta.size()=" << resp.rowset_meta().size() - << ", latency=" << latency << "us"; + LOG_EVERY_N(INFO, 100) << "finish get_rowset rpc. tablet_id=" << tablet + << ", rowset_meta.size()=" << resp.rowset_meta().size() + << ", latency=" << latency << "us"; } int64_t now = duration_cast(system_clock::now().time_since_epoch()).count();