This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 327069fdbcc [branch-2.1](log) add tablet clear cache log (#38713)
327069fdbcc is described below
commit 327069fdbcc71d93ff441c11838f913f1eb84d44
Author: yujun <[email protected]>
AuthorDate: Fri Aug 2 08:40:02 2024 +0800
[branch-2.1](log) add tablet clear cache log (#38713)
---
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 59971f01a4d..e5bdf4dfb63 100644
--- a/be/src/agent/task_worker_pool.cpp
+++ b/be/src/agent/task_worker_pool.cpp
@@ -1363,7 +1363,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 fe6589e63a2..7ff4b508c97 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -3945,6 +3945,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: [email protected]
For additional commands, e-mail: [email protected]