mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #44758 from ClickHouse/fix-crash-in-trace-collector-dtor
Do not throw exceptions in ~TraceCollector.
This commit is contained in:
commit
969214ce9e
@ -31,6 +31,7 @@ TraceCollector::TraceCollector(std::shared_ptr<TraceLog> trace_log_)
|
||||
|
||||
|
||||
TraceCollector::~TraceCollector()
|
||||
try
|
||||
{
|
||||
if (!thread.joinable())
|
||||
LOG_ERROR(&Poco::Logger::get("TraceCollector"), "TraceCollector thread is malformed and cannot be joined");
|
||||
@ -39,6 +40,10 @@ TraceCollector::~TraceCollector()
|
||||
|
||||
TraceSender::pipe.close();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException("TraceCollector");
|
||||
}
|
||||
|
||||
|
||||
/** Sends TraceCollector stop message
|
||||
|
Loading…
Reference in New Issue
Block a user