v.23.4Improvement
Implement File Reopening Workaround for ClickHouse in LXCFS Environment
Implement 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. We have additionally workaround this issue by reopening a file. This is a minuscule change. #48922 (Real).Why it matters
LXCFS sometimes returns a transient "Transport endpoint is not connected" error when ClickHouse reads files from the/proc filesystem inside LXC containers. This update addresses this rare issue by automatically reopening the affected file instead of failing, enhancing ClickHouse stability and reducing spurious errors in such environments.How to use it
No special configuration is required. The workaround is applied internally in ClickHouse when running inside LXC with LXCFS, transparently handling occasional/proc file read errors.