mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
exceptions_kafka_consumers: initial
This commit is contained in:
parent
3ec14370a7
commit
7cd8237a42
@ -771,7 +771,27 @@ void StorageKafka::threadFunc(size_t idx)
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
// !!!
|
||||||
|
// std::string getCurrentExceptionMessage(bool with_stacktrace, bool check_embedded_stacktrace /*= false*/, bool with_extra_info /*= true*/);
|
||||||
|
|
||||||
|
auto last_exception = std::current_exception();
|
||||||
|
tryLogException(last_exception, log, __PRETTY_FUNCTION__);
|
||||||
|
|
||||||
|
auto exception_str = getExceptionMessage(last_exception, true /* with_stacktrace */);
|
||||||
|
|
||||||
|
for (auto consumer_ptr_weak : all_consumers)
|
||||||
|
{
|
||||||
|
if (auto consumer_ptr = consumer_ptr_weak.lock())
|
||||||
|
{
|
||||||
|
consumer_ptr->setExceptionInfo(exception_str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mv_attached.store(false);
|
mv_attached.store(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user