Skip to content

Commit

Permalink
chore(query): add warn log if vacuum temporary file is error (#16646)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang2014 authored Oct 21, 2024
1 parent b1538fa commit 43060aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/query/service/src/interpreters/hook/vacuum_hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ pub fn hook_vacuum_temp_files(query_ctx: &Arc<QueryContext>) -> Result<()> {
)
.await;

if let Err(cause) = &removed_files {
log::warn!("Vacuum temporary files has error: {:?}", cause);
}

if vacuum_limit != 0 && matches!(removed_files, Ok(res) if res == vacuum_limit as usize)
{
// Have not been removed files
Expand Down

0 comments on commit 43060aa

Please sign in to comment.