mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
Update AsynchronousMetrics.cpp
This commit is contained in:
parent
11b3469eac
commit
a6fceaa497
@ -683,6 +683,11 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
|
||||
/// A slight improvement for the rare case when ClickHouse is run inside LXC and LXCFS is used.
|
||||
/// The LXCFS has an issue: sometimes it returns an error "Transport endpoint is not connected" on reading from the file inside `/proc`.
|
||||
/// This error was correctly logged into ClickHouse's server log, but it was a source of annoyance to some users.
|
||||
/// We additionally workaround this issue by reopening a file.
|
||||
openFileIfExists("/proc/loadavg", loadavg);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user