diff --git a/src/Interpreters/Cache/FileCache.cpp b/src/Interpreters/Cache/FileCache.cpp index cad018e772a..39399c9ce09 100644 --- a/src/Interpreters/Cache/FileCache.cpp +++ b/src/Interpreters/Cache/FileCache.cpp @@ -550,6 +550,9 @@ FileCache::FileSegmentCell * FileCache::addCell( } catch (...) { + /// Avoid errors like + /// std::__1::__fs::filesystem::filesystem_error: filesystem error: in create_directories: No space left on device + /// and mark file segment with SKIP_CACHE state tryLogCurrentException(__PRETTY_FUNCTION__); result_state = FileSegment::State::SKIP_CACHE; }