Skip to content

Commit

Permalink
NED
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiang-hhhh committed Dec 27, 2024
1 parent fa458b5 commit 5e27cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/util/threadpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ ThreadPool::~ThreadPool() {
// There should only be one live token: the one used in tokenless submission.
CHECK_EQ(1, _tokens.size()) << strings::Substitute(
"Threadpool $0 destroyed with $1 allocated tokens", _name, _tokens.size());
// FOR DEBU, need remove
std::cerr << "Threadpool " << _name << " deconstruct " << std::endl;
shutdown();
}

Expand Down Expand Up @@ -327,6 +329,7 @@ Status ThreadPool::init() {
}

void ThreadPool::shutdown() {
std::cerr << "Threadpool " << _name << " shutdonw. " << std::endl;
DorisMetrics::instance()->metric_registry()->deregister_entity(_metric_entity);
debug::ScopedTSANIgnoreReadsAndWrites ignore_tsan;
std::unique_lock<std::mutex> l(_lock);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ suite("test_metrics_with_workload_group") {
List<String> lines = filteredMetrics.split('\n').findAll { it.trim() }
assert lines.size() == 5
}

sql "drop workload group if exists test_wg_metrics;"
}
sql "drop workload group if exists test_wg_metrics;"
}

0 comments on commit 5e27cf5

Please sign in to comment.