mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Add comment
This commit is contained in:
parent
1242834256
commit
d10aeef23e
@ -329,6 +329,10 @@ void KeeperServer::launchRaftServer(const Poco::Util::AbstractConfiguration & co
|
||||
params.return_method_ = nuraft::raft_params::async_handler;
|
||||
|
||||
nuraft::asio_service::options asio_opts{};
|
||||
|
||||
/// If asio worker threads fail in any way, NuRaft will stop to make any progress
|
||||
/// For that reason we need to supress out of memory exceptions in such threads
|
||||
/// TODO: use `get_active_workers` to detect when we have no active workers to abort
|
||||
asio_opts.worker_start_ = [](uint32_t /*worker_id*/)
|
||||
{
|
||||
LockMemoryExceptionInThread::addUniqueLock(VariableContext::Global);
|
||||
|
Loading…
Reference in New Issue
Block a user