Skip to content

Commit

Permalink
[opt](memory) QueryMemTracker not equal to 0 will crash at query end …
Browse files Browse the repository at this point in the history
…when Debug compile (apache#35014)

to eliminate query memory leak !!!
  • Loading branch information
xinyiZzz authored and yiguolei committed Sep 11, 2024
1 parent 47fd19f commit 72a1cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/runtime/memory/mem_tracker_limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ MemTrackerLimiter::~MemTrackerLimiter() {
"4. If you need to "
"transfer memory tracking value between two trackers, can use transfer_to.";
if (_consumption->current_value() != 0) {
// TODO, expect mem tracker equal to 0 at the task end.
// TODO, expect mem tracker equal to 0 at the load/compaction/etc. task end.
#ifndef NDEBUG
if (_type == Type::QUERY) {
std::string err_msg =
Expand Down

0 comments on commit 72a1cd0

Please sign in to comment.