Merge pull request #71377 from ClickHouse/backport/24.9/71364

Backport #71364 to 24.9: Add try catch to data part destructors
This commit is contained in:
robot-ch-test-poll4 2024-11-01 18:31:31 +01:00 committed by GitHub
commit 841552259d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View File

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

View File

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