mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
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:
commit
841552259d
@ -232,7 +232,14 @@ bool MergeTreeDataPartCompact::isStoredOnRemoteDiskWithZeroCopySupport() const
|
|||||||
|
|
||||||
MergeTreeDataPartCompact::~MergeTreeDataPartCompact()
|
MergeTreeDataPartCompact::~MergeTreeDataPartCompact()
|
||||||
{
|
{
|
||||||
removeIfNeeded();
|
try
|
||||||
|
{
|
||||||
|
removeIfNeeded();
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user