Skip to content
Open
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
6 changes: 3 additions & 3 deletions velox/common/memory/tests/MockSharedArbitratorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ DEBUG_ONLY_TEST_F(

std::unordered_map<std::string, RuntimeMetric> runtimeStats;
auto statsWriter = std::make_unique<TestRuntimeStatWriter>(runtimeStats);
setThreadLocalRunTimeStatWriter(statsWriter.get());
RuntimeStatWriterScopeGuard statsWriterGuard(statsWriter.get());

localArbitrationOp->allocate(memoryPoolReservedCapacity);
// Inject some delay for global arbitration.
Expand Down Expand Up @@ -2111,7 +2111,7 @@ TEST_F(MockSharedArbitrationTest, globalArbitrationWithoutSpill) {

std::unordered_map<std::string, RuntimeMetric> runtimeStats;
auto statsWriter = std::make_unique<TestRuntimeStatWriter>(runtimeStats);
setThreadLocalRunTimeStatWriter(statsWriter.get());
RuntimeStatWriterScopeGuard statsWriterGuard(statsWriter.get());
triggerOp->allocate(memoryCapacity / 2);

ASSERT_EQ(
Expand Down Expand Up @@ -2166,7 +2166,7 @@ TEST_F(MockSharedArbitrationTest, globalArbitrationSmallParticipantLargeGrow) {

std::unordered_map<std::string, RuntimeMetric> runtimeStats;
auto statsWriter = std::make_unique<TestRuntimeStatWriter>(runtimeStats);
setThreadLocalRunTimeStatWriter(statsWriter.get());
RuntimeStatWriterScopeGuard statsWriterGuard(statsWriter.get());

// task0 has 256MB + 256MB (attempt) = 512MB in top abort capacity limit
// bucket, which shall be evaluated first, and hence killed by global
Expand Down
Loading