mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Improve logging one time
This commit is contained in:
parent
90647cb0c5
commit
6da37b92e1
@ -142,7 +142,7 @@ bool ReadBufferFromS3::nextImpl()
|
||||
/// It doesn't make sense to retry Access Denied or No Such Key
|
||||
if (!s3_exception->isRetryableError())
|
||||
{
|
||||
tryLogCurrentException(log);
|
||||
tryLogCurrentException(log, fmt::format("while reading key: {}, from bucket: {}", key, bucket));
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -1046,12 +1046,12 @@ void MergeTreeData::loadDataPartsFromDisk(
|
||||
throw;
|
||||
|
||||
broken = true;
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__, fmt::format("while loading part {} on path {}", part->name, part_path));
|
||||
tryLogCurrentException(log, fmt::format("while loading part {} on path {}", part->name, part_path));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
broken = true;
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__, fmt::format("while loading part {} on path {}", part->name, part_path));
|
||||
tryLogCurrentException(log, fmt::format("while loading part {} on path {}", part->name, part_path));
|
||||
}
|
||||
|
||||
/// Ignore broken parts that can appear as a result of hard server restart.
|
||||
@ -1065,7 +1065,7 @@ void MergeTreeData::loadDataPartsFromDisk(
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__, fmt::format("while calculating part size {} on path {}", part->name, part_path));
|
||||
tryLogCurrentException(log, fmt::format("while calculating part size {} on path {}", part->name, part_path));
|
||||
}
|
||||
|
||||
std::string part_size_str = "failed to calculate size";
|
||||
|
@ -7543,6 +7543,9 @@ std::pair<bool, NameSet> StorageReplicatedMergeTree::unlockSharedData(const IMer
|
||||
if (!settings->allow_remote_fs_zero_copy_replication)
|
||||
return std::make_pair(true, NameSet{});
|
||||
|
||||
if (!part.data_part_storage)
|
||||
LOG_WARNING(log, "Datapart storage for part {} (temp: {}) is not initialzied", part.name, part.is_temp);
|
||||
|
||||
if (!part.data_part_storage || !part.isStoredOnDisk())
|
||||
{
|
||||
LOG_TRACE(log, "Part {} is not stored on disk, blobs can be removed", part.name);
|
||||
|
Loading…
Reference in New Issue
Block a user