From d4f2355b9a7e938a77ad7d01d66d7ac2358e788d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 10 Feb 2026 13:48:01 -0800 Subject: [PATCH] Add actionable empty-folder cleanup diagnostics --- weed/filer/empty_folder_cleanup/empty_folder_cleaner.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/weed/filer/empty_folder_cleanup/empty_folder_cleaner.go b/weed/filer/empty_folder_cleanup/empty_folder_cleaner.go index daa0027ff..a3351f682 100644 --- a/weed/filer/empty_folder_cleanup/empty_folder_cleaner.go +++ b/weed/filer/empty_folder_cleanup/empty_folder_cleaner.go @@ -214,8 +214,10 @@ func (efc *EmptyFolderCleaner) cleanupProcessor() { func (efc *EmptyFolderCleaner) processCleanupQueue() { // Check if we should process if !efc.cleanupQueue.ShouldProcess() { - glog.V(4).Infof("EmptyFolderCleaner: skipping queue processing (len=%d, oldest_age=%v, max_size=%d, max_age=%v)", - efc.cleanupQueue.Len(), efc.cleanupQueue.OldestAge(), efc.cleanupQueue.maxSize, efc.cleanupQueue.maxAge) + if efc.cleanupQueue.Len() > 0 { + glog.Infof("EmptyFolderCleaner: pending queue not processed yet (len=%d, oldest_age=%v, max_size=%d, max_age=%v)", + efc.cleanupQueue.Len(), efc.cleanupQueue.OldestAge(), efc.cleanupQueue.maxSize, efc.cleanupQueue.maxAge) + } return } @@ -322,7 +324,7 @@ func (efc *EmptyFolderCleaner) executeCleanup(folder string) { } if !isImplicit { - glog.V(2).Infof("EmptyFolderCleaner: folder %s is not marked as implicit (source=%s attr=%s), skipping", folder, implicitSource, implicitAttr) + glog.Infof("EmptyFolderCleaner: folder %s is not marked as implicit (source=%s attr=%s), skipping", folder, implicitSource, implicitAttr) return }