mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Backport #71364 to 24.8: Add try catch to data part destructors
This commit is contained in:
parent
f3d4236ce2
commit
1e1ef4d002
@ -232,7 +232,14 @@ bool MergeTreeDataPartCompact::isStoredOnRemoteDiskWithZeroCopySupport() const
|
||||
|
||||
MergeTreeDataPartCompact::~MergeTreeDataPartCompact()
|
||||
{
|
||||
removeIfNeeded();
|
||||
try
|
||||
{
|
||||
removeIfNeeded();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -195,7 +195,14 @@ bool MergeTreeDataPartWide::isStoredOnRemoteDiskWithZeroCopySupport() const
|
||||
|
||||
MergeTreeDataPartWide::~MergeTreeDataPartWide()
|
||||
{
|
||||
removeIfNeeded();
|
||||
try
|
||||
{
|
||||
removeIfNeeded();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
void MergeTreeDataPartWide::doCheckConsistency(bool require_part_metadata) const
|
||||
|
Loading…
Reference in New Issue
Block a user