Skip to content

Commit

Permalink
[fix](spill) avoid printing too much status stack trace if gc dir doe…
Browse files Browse the repository at this point in the history
…s not exist
  • Loading branch information
jacktengg committed Sep 20, 2023
1 parent 2a260be commit 5d35f04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions be/src/runtime/block_spill_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ void BlockSpillManager::gc(int64_t max_file_count) {
for (const auto& path : _store_paths) {
std::string gc_root_dir = fmt::format("{}/{}", path.path, BLOCK_SPILL_GC_DIR);

std::error_code ec;
exists = std::filesystem::exists(gc_root_dir, ec);
if (ec || !exists) {
continue;
}
std::vector<io::FileInfo> dirs;
auto st = io::global_local_filesystem()->list(gc_root_dir, false, &dirs, &exists);
if (!st.ok()) {
Expand Down

0 comments on commit 5d35f04

Please sign in to comment.