diff --git a/be/src/cloud/cloud_cumulative_compaction.cpp b/be/src/cloud/cloud_cumulative_compaction.cpp index 8ed7a57e934b8b..cb70870ffd60fe 100644 --- a/be/src/cloud/cloud_cumulative_compaction.cpp +++ b/be/src/cloud/cloud_cumulative_compaction.cpp @@ -167,6 +167,9 @@ Status CloudCumulativeCompaction::prepare_compact() { Status CloudCumulativeCompaction::execute_compact() { TEST_SYNC_POINT_RETURN_WITH_VALUE("CloudCumulativeCompaction::execute_compact_impl", Status::OK(), this); + + SCOPED_ATTACH_TASK(_mem_tracker); + using namespace std::chrono; auto start = steady_clock::now(); RETURN_IF_ERROR(CloudCompactionMixin::execute_compact());