Add try catch to data part destructors

This commit is contained in:
alesapin 2024-11-01 13:15:15 +01:00
parent ea806b05a0
commit 24e7fc2714
2 changed files with 16 additions and 2 deletions

View File

@ -256,7 +256,14 @@ bool MergeTreeDataPartCompact::isStoredOnRemoteDiskWithZeroCopySupport() const
MergeTreeDataPartCompact::~MergeTreeDataPartCompact()
{
removeIfNeeded();
try
{
removeIfNeeded();
}
catch (...)
{
tryLogCurrentException(__PRETTY_FUNCTION__);
}
}
}

View File

@ -241,7 +241,14 @@ bool MergeTreeDataPartWide::isStoredOnRemoteDiskWithZeroCopySupport() const
MergeTreeDataPartWide::~MergeTreeDataPartWide()
{
removeIfNeeded();
try
{
removeIfNeeded();
}
catch (...)
{
tryLogCurrentException(__PRETTY_FUNCTION__);
}
}
void MergeTreeDataPartWide::doCheckConsistency(bool require_part_metadata) const