From efcde4c84f70e28d81665610ae1eabb6207b4176 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 9 May 2021 22:31:44 +0300 Subject: [PATCH] Decrease log level in IPAddressDictionary for duplicated records After RELOAD DICTIONARY had been changed to capture the logs (by attaching query's thread group) the 01852_dictionary_found_rate_long fails because of this warning. But it does not looks like it should be a warning, so change to trace. --- src/Dictionaries/IPAddressDictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dictionaries/IPAddressDictionary.cpp b/src/Dictionaries/IPAddressDictionary.cpp index dd6bb3bb42c..6844caf65a9 100644 --- a/src/Dictionaries/IPAddressDictionary.cpp +++ b/src/Dictionaries/IPAddressDictionary.cpp @@ -417,7 +417,7 @@ void IPAddressDictionary::loadData() return cmpres; }); if (deleted_count > 0) - LOG_WARNING(logger, "removing {} non-unique subnets from input", deleted_count); + LOG_TRACE(logger, "removing {} non-unique subnets from input", deleted_count); auto & ipv6_col = ip_column.emplace(); ipv6_col.resize_fill(IPV6_BINARY_LENGTH * ip_records.size()); @@ -444,7 +444,7 @@ void IPAddressDictionary::loadData() return compareTo(a, b); }); if (deleted_count > 0) - LOG_WARNING(logger, "removing {} non-unique subnets from input", deleted_count); + LOG_TRACE(logger, "removing {} non-unique subnets from input", deleted_count); auto & ipv4_col = ip_column.emplace(); ipv4_col.reserve(ip_records.size());