From 43060aa301a5a34eea30815bdb6b5f132baf5979 Mon Sep 17 00:00:00 2001 From: Winter Zhang Date: Mon, 21 Oct 2024 17:02:16 +0800 Subject: [PATCH] chore(query): add warn log if vacuum temporary file is error (#16646) --- src/query/service/src/interpreters/hook/vacuum_hook.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/query/service/src/interpreters/hook/vacuum_hook.rs b/src/query/service/src/interpreters/hook/vacuum_hook.rs index 21f01ea8cc6f6..9a9e7c28107bd 100644 --- a/src/query/service/src/interpreters/hook/vacuum_hook.rs +++ b/src/query/service/src/interpreters/hook/vacuum_hook.rs @@ -53,6 +53,10 @@ pub fn hook_vacuum_temp_files(query_ctx: &Arc) -> 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