Merge pull request #17615 from ClickHouse/fix-logging

Fix logging in MergeTree
This commit is contained in:
tavplubix 2020-12-01 14:26:25 +03:00 committed by GitHub
commit 21bbc7bc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1140,11 +1140,12 @@ bool ReplicatedMergeTreeQueue::shouldExecuteLogEntry(
{ {
const char * format_str = "Not executing log entry {} for part {}" const char * format_str = "Not executing log entry {} for part {}"
" because {} merges with TTL already executing, maximum {}."; " because {} merges with TTL already executing, maximum {}.";
LOG_DEBUG(log, format_str, entry.znode_name, LOG_DEBUG(log, format_str,
entry.new_part_name, total_merges_with_ttl, entry.znode_name, entry.new_part_name, total_merges_with_ttl,
data_settings->max_number_of_merges_with_ttl_in_pool); data_settings->max_number_of_merges_with_ttl_in_pool);
out_postpone_reason = fmt::format(format_str, entry.new_part_name, total_merges_with_ttl, out_postpone_reason = fmt::format(format_str,
entry.znode_name, entry.new_part_name, total_merges_with_ttl,
data_settings->max_number_of_merges_with_ttl_in_pool); data_settings->max_number_of_merges_with_ttl_in_pool);
return false; return false;
} }