From c66f71c79514908bacafb410e02c947d10947ac2 Mon Sep 17 00:00:00 2001 From: Alexander Gololobov Date: Fri, 15 Nov 2024 14:05:52 +0100 Subject: [PATCH] Log PK index loading --- src/Storages/MergeTree/IMergeTreeDataPart.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Storages/MergeTree/IMergeTreeDataPart.cpp b/src/Storages/MergeTree/IMergeTreeDataPart.cpp index ea01a0ed0f9..89bfc152e50 100644 --- a/src/Storages/MergeTree/IMergeTreeDataPart.cpp +++ b/src/Storages/MergeTree/IMergeTreeDataPart.cpp @@ -988,6 +988,8 @@ void IMergeTreeDataPart::loadIndex() const "{}, read: {})", index_path, marks_count, loaded_index[i]->size()); } + LOG_TEST(storage.log, "Loaded primary key index for part {}, {} columns are kept in memory", name, key_size); + if (!index_file->eof()) throw Exception(ErrorCodes::EXPECTED_END_OF_FILE, "Index file {} is unexpectedly long", index_path);