Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions velox/exec/tests/utils/OperatorTestBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ void OperatorTestBase::SetUp() {
void OperatorTestBase::TearDown() {
waitForAllTasksToBeDeleted();
stopPeriodicStatsReporter();
executor_.reset();
// There might be lingering exchange source on executor even after all tasks
// are deleted. This can cause memory leak because exchange source holds
// reference to memory pool. We need to make sure they are properly cleaned.
Expand Down
4 changes: 2 additions & 2 deletions velox/vector/tests/utils/VectorTestBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ class VectorTestBase {
memory::memoryManager()->addRootPool()};
std::shared_ptr<memory::MemoryPool> pool_{rootPool_->addLeafChild("leaf")};
velox::test::VectorMaker vectorMaker_{pool_.get()};
std::shared_ptr<folly::Executor> executor_{
std::make_shared<folly::CPUThreadPoolExecutor>(
std::unique_ptr<folly::Executor> executor_{
std::make_unique<folly::CPUThreadPoolExecutor>(
std::thread::hardware_concurrency())};
std::shared_ptr<folly::Executor> spillExecutor_{
std::make_shared<folly::CPUThreadPoolExecutor>(
Expand Down
Loading