Skip to content

Commit

Permalink
[chore](cancel) Make enable_pipeline_task_leakage_detect false by def…
Browse files Browse the repository at this point in the history
…ault (apache#40145)

add be.conf enable_pipeline_task_leakage_detect, default to false.
  • Loading branch information
zhiqiang-hhhh authored Aug 30, 2024
1 parent d580a0a commit 721d460
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,8 @@ DEFINE_mInt64(pipeline_task_leakage_detect_period_secs, "60");
DEFINE_mInt32(snappy_compression_block_size, "262144");
DEFINE_mInt32(lz4_compression_block_size, "262144");

DEFINE_mBool(enable_pipeline_task_leakage_detect, "false");

// clang-format off
#ifdef BE_TEST
// test s3
Expand Down
2 changes: 2 additions & 0 deletions be/src/common/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ DECLARE_mInt64(pipeline_task_leakage_detect_period_secs);
DECLARE_mInt32(snappy_compression_block_size);
DECLARE_mInt32(lz4_compression_block_size);

DECLARE_mBool(enable_pipeline_task_leakage_detect);

#ifdef BE_TEST
// test s3
DECLARE_String(test_s3_resource);
Expand Down
5 changes: 3 additions & 2 deletions be/src/runtime/fragment_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,9 @@ void FragmentMgr::cancel_worker() {
timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);

if (now.tv_sec - check_invalid_query_last_timestamp.tv_sec >
config::pipeline_task_leakage_detect_period_secs) {
if (config::enable_pipeline_task_leakage_detect &&
now.tv_sec - check_invalid_query_last_timestamp.tv_sec >
config::pipeline_task_leakage_detect_period_secs) {
check_invalid_query_last_timestamp = now;
running_queries_on_all_fes = _get_all_running_queries_from_fe();
} else {
Expand Down

0 comments on commit 721d460

Please sign in to comment.