From 5e79c68e8e80370d8a0c0e2d9e16e93285b1d55d Mon Sep 17 00:00:00 2001 From: alesapin Date: Fri, 2 Jul 2021 11:54:22 +0300 Subject: [PATCH] Debug --- src/Storages/MergeTree/BackgroundJobsExecutor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Storages/MergeTree/BackgroundJobsExecutor.cpp b/src/Storages/MergeTree/BackgroundJobsExecutor.cpp index 16e1702824e..7c9c771a845 100644 --- a/src/Storages/MergeTree/BackgroundJobsExecutor.cpp +++ b/src/Storages/MergeTree/BackgroundJobsExecutor.cpp @@ -58,9 +58,10 @@ void IBackgroundJobExecutor::scheduleTask(bool with_backoff) } else { - no_work_done_count = 0; /// We have work, but run without backoff + no_work_done_count = 0; next_time_to_execute = 1000 * sleep_settings.thread_sleep_seconds_if_nothing_to_do; } + LOG_DEBUG(&Poco::Logger::get("DEBUG"), "NO WORK DONE TIMES {}", no_work_done_count); scheduling_task->scheduleAfter(next_time_to_execute, false); }