This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 9daf67e3384 [branch-3.0](log) add tablet clear cache log (#38715) 9daf67e3384 is described below commit 9daf67e3384acb57e9dc606fce95f3e2df8465f7 Author: yujun <yu.jun.re...@gmail.com> AuthorDate: Sun Aug 4 10:08:29 2024 +0800 [branch-3.0](log) add tablet clear cache log (#38715) --- be/src/agent/task_worker_pool.cpp | 4 +++- be/src/olap/tablet.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/be/src/agent/task_worker_pool.cpp b/be/src/agent/task_worker_pool.cpp index efd15d0711b..bfa5b888edf 100644 --- a/be/src/agent/task_worker_pool.cpp +++ b/be/src/agent/task_worker_pool.cpp @@ -1518,7 +1518,9 @@ void create_tablet_callback(StorageEngine& engine, const TAgentTaskRequest& req) COUNTER_UPDATE(profile->total_time_counter(), elapsed_time); std::stringstream ss; profile->pretty_print(&ss); - LOG(WARNING) << "create tablet cost(s) " << elapsed_time / 1e9 << std::endl << ss.str(); + LOG(WARNING) << "create tablet " << create_tablet_req.tablet_id << " cost(s) " + << elapsed_time / 1e9 << std::endl + << ss.str(); } }); DorisMetrics::instance()->create_tablet_requests_total->increment(1); diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 1a1d3be6bc9..5018c70be11 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -2642,6 +2642,7 @@ Status Tablet::ingest_binlog_metas(RowsetBinlogMetasPB* metas_pb) { void Tablet::clear_cache() { std::shared_lock rlock(get_header_lock()); + SCOPED_SIMPLE_TRACE_IF_TIMEOUT(TRACE_TABLET_LOCK_THRESHOLD); static auto recycle_segment_cache = [](const auto& rowset_map) { for (auto& [_, rowset] : rowset_map) { rowset->clear_cache(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org