mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
reopen stale fd
This commit is contained in:
parent
905587b39d
commit
11b3469eac
@ -683,6 +683,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/loadavg", loadavg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -700,6 +701,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/uptime", uptime);
|
||||
}
|
||||
}
|
||||
|
||||
@ -887,6 +889,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/stat", proc_stat);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1007,6 +1010,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/meminfo", meminfo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1059,6 +1063,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/cpuinfo", cpuinfo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1076,6 +1081,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/sys/fs/file-nr", file_nr);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1308,6 +1314,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
openFileIfExists("/proc/net/dev", net_dev);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user