mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Merge pull request #63298 from nickitat/fix_merge_tree_deduplication_log_shutdown
Fix terminate because of unhandled exception in `MergeTreeDeduplicationLog::shutdown`
This commit is contained in:
commit
761c4b5696
@ -340,22 +340,22 @@ void MergeTreeDeduplicationLog::shutdown()
|
|||||||
|
|
||||||
stopped = true;
|
stopped = true;
|
||||||
if (current_writer)
|
if (current_writer)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
current_writer->finalize();
|
current_writer->finalize();
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||||
|
}
|
||||||
current_writer.reset();
|
current_writer.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MergeTreeDeduplicationLog::~MergeTreeDeduplicationLog()
|
MergeTreeDeduplicationLog::~MergeTreeDeduplicationLog()
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
shutdown();
|
shutdown();
|
||||||
}
|
}
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user