This is an automated email from the ASF dual-hosted git repository. caiconghui pushed a commit to branch branch-1.1-lts in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push: new 6e6fcece15 [fix](be_ut) Fix mem_limit_test ut failure #13194 6e6fcece15 is described below commit 6e6fcece15edf8424722aed49ca04ed14f929d6f Author: Xinyi Zou <zouxiny...@gmail.com> AuthorDate: Sun Oct 9 09:49:00 2022 +0800 [fix](be_ut) Fix mem_limit_test ut failure #13194 --- be/test/runtime/mem_limit_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/be/test/runtime/mem_limit_test.cpp b/be/test/runtime/mem_limit_test.cpp index b2c4017ea1..8d35f930d7 100644 --- a/be/test/runtime/mem_limit_test.cpp +++ b/be/test/runtime/mem_limit_test.cpp @@ -24,6 +24,7 @@ namespace doris { TEST(MemTrackerTest, SingleTrackerNoLimit) { + config::enable_cancel_query = true; auto t = MemTracker::CreateTracker(); EXPECT_FALSE(t->has_limit()); t->Consume(10); @@ -37,6 +38,7 @@ TEST(MemTrackerTest, SingleTrackerNoLimit) { } TEST(MemTestTest, SingleTrackerWithLimit) { + config::enable_cancel_query = true; auto t = MemTracker::CreateTracker(11, "limit tracker"); EXPECT_TRUE(t->has_limit()); t->Consume(10); @@ -52,6 +54,7 @@ TEST(MemTestTest, SingleTrackerWithLimit) { } TEST(MemTestTest, TrackerHierarchy) { + config::enable_cancel_query = true; auto p = MemTracker::CreateTracker(100); auto c1 = MemTracker::CreateTracker(80, "c1", p); auto c2 = MemTracker::CreateTracker(50, "c2", p); @@ -95,6 +98,7 @@ TEST(MemTestTest, TrackerHierarchy) { } TEST(MemTestTest, TrackerHierarchyTryConsume) { + config::enable_cancel_query = true; auto p = MemTracker::CreateTracker(100); auto c1 = MemTracker::CreateTracker(80, "c1", p); auto c2 = MemTracker::CreateTracker(50, "c2", p); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org