Skip to content

Commit

Permalink
[BugFix] Fix be crash caused by uncaught future_error exception (#47320)
Browse files Browse the repository at this point in the history
Signed-off-by: xiangguangyxg <[email protected]>
  • Loading branch information
xiangguangyxg authored Jul 10, 2024
1 parent 118c837 commit fb86d7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion be/src/storage/lake/vacuum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ class AsyncFileDeleter {
// Wait for all submitted deletion tasks to finish and return task execution results.
Status wait() {
if (_prev_task_status.valid()) {
return _prev_task_status.get();
try {
return _prev_task_status.get();
} catch (const std::exception& e) {
return Status::InternalError(e.what());
}
} else {
return Status::OK();
}
Expand Down

0 comments on commit fb86d7c

Please sign in to comment.