mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Merge pull request #53839 from ClickHouse/tavplubix-patch-8
Update 00002_log_and_exception_messages_formatting.sql
This commit is contained in:
commit
762d5a2ce8
@ -9,7 +9,8 @@ create view logs as select * from system.text_log where now() - toIntervalMinute
|
||||
|
||||
-- Check that we don't have too many messages formatted with fmt::runtime or strings concatenation.
|
||||
-- 0.001 threshold should be always enough, the value was about 0.00025
|
||||
select 'runtime messages', greatest(coalesce(sum(length(message_format_string) = 0) / countOrNull(), 0), 0.001) from logs;
|
||||
select 'runtime messages', greatest(coalesce(sum(length(message_format_string) = 0) / countOrNull(), 0), 0.001) from logs
|
||||
where message not like '% Received from %clickhouse-staging.com:9440%';
|
||||
|
||||
-- Check the same for exceptions. The value was 0.03
|
||||
select 'runtime exceptions', max2(coalesce(sum(length(message_format_string) = 0) / countOrNull(), 0), 0.05) from logs
|
||||
|
Loading…
Reference in New Issue
Block a user