This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new d8ad6ebff2c [enhancement](disk) log disk path when creating tablet (#29464) d8ad6ebff2c is described below commit d8ad6ebff2c0e20c90223be5a9dfc6a093e2a4cb Author: Yongqiang YANG <98214048+dataroar...@users.noreply.github.com> AuthorDate: Thu Jan 4 20:36:37 2024 +0800 [enhancement](disk) log disk path when creating tablet (#29464) --- be/src/olap/data_dir.cpp | 3 ++- be/src/olap/tablet_manager.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/be/src/olap/data_dir.cpp b/be/src/olap/data_dir.cpp index 09c50314608..662596bfba1 100644 --- a/be/src/olap/data_dir.cpp +++ b/be/src/olap/data_dir.cpp @@ -837,7 +837,8 @@ Status DataDir::update_capacity() { disks_total_capacity->set_value(_disk_capacity_bytes); disks_avail_capacity->set_value(_available_bytes); LOG(INFO) << "path: " << _path << " total capacity: " << _disk_capacity_bytes - << ", available capacity: " << _available_bytes; + << ", available capacity: " << _available_bytes << ", usage: " << get_usage(0) + << ", in_use: " << is_used(); return Status::OK(); } diff --git a/be/src/olap/tablet_manager.cpp b/be/src/olap/tablet_manager.cpp index 45c12ce582f..7f3b61c6f14 100644 --- a/be/src/olap/tablet_manager.cpp +++ b/be/src/olap/tablet_manager.cpp @@ -268,7 +268,8 @@ Status TabletManager::create_tablet(const TCreateTabletReq& request, std::vector int64_t tablet_id = request.tablet_id; LOG(INFO) << "begin to create tablet. tablet_id=" << tablet_id << ", table_id=" << request.table_id << ", partition_id=" << request.partition_id - << ", replica_id=" << request.replica_id; + << ", replica_id=" << request.replica_id << ", stores.size=" << stores.size() + << ", first store=" << stores[0]->path(); // when we create rollup tablet A(assume on shard-1) from tablet B(assume on shard-2) // we need use write lock on shard-1 and then use read lock on shard-2 @@ -340,7 +341,8 @@ Status TabletManager::create_tablet(const TCreateTabletReq& request, std::vector request.tablet_id); } - LOG(INFO) << "success to create tablet. tablet_id=" << tablet_id; + LOG(INFO) << "success to create tablet. tablet_id=" << tablet_id + << ", tablet_path=" << tablet->tablet_path(); return Status::OK(); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org