@@ -174,12 +174,14 @@ static inline void check_recycle_task(const std::string& instance_id, const std:
174174Recycler::Recycler (std::shared_ptr<TxnKv> txn_kv) : txn_kv_(std::move(txn_kv)) {
175175 ip_port_ = std::string (butil::my_ip_cstr ()) + " :" + std::to_string (config::brpc_listen_port);
176176
177- auto s3_producer_pool = std::make_shared<SimpleThreadPool>(config::recycle_pool_parallelism);
177+ auto s3_producer_pool = std::make_shared<SimpleThreadPool>(config::recycle_pool_parallelism,
178+ " s3_producer_pool" );
178179 s3_producer_pool->start ();
179- auto recycle_tablet_pool = std::make_shared<SimpleThreadPool>(config::recycle_pool_parallelism);
180+ auto recycle_tablet_pool = std::make_shared<SimpleThreadPool>(config::recycle_pool_parallelism,
181+ " recycle_tablet_pool" );
180182 recycle_tablet_pool->start ();
181- auto group_recycle_function_pool =
182- std::make_shared<SimpleThreadPool>( config::recycle_pool_parallelism);
183+ auto group_recycle_function_pool = std::make_shared<SimpleThreadPool>(
184+ config::recycle_pool_parallelism, " group_recycle_function_pool " );
183185 group_recycle_function_pool->start ();
184186 _thread_pool_group =
185187 RecyclerThreadPoolGroup (std::move (s3_producer_pool), std::move (recycle_tablet_pool),
@@ -1914,8 +1916,8 @@ int InstanceRecycler::recycle_rowsets() {
19141916 // Store keys of rowset recycled by background workers
19151917 std::mutex async_recycled_rowset_keys_mutex;
19161918 std::vector<std::string> async_recycled_rowset_keys;
1917- auto worker_pool =
1918- std::make_unique<SimpleThreadPool>( config::instance_recycler_worker_pool_size);
1919+ auto worker_pool = std::make_unique<SimpleThreadPool>(
1920+ config::instance_recycler_worker_pool_size, " recycle_rowsets " );
19191921 worker_pool->start ();
19201922 auto delete_rowset_data_by_prefix = [&](std::string key, const std::string& resource_id,
19211923 int64_t tablet_id, const std::string& rowset_id) {
0 commit comments