This is an automated email from the ASF dual-hosted git repository.

htowaileb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git


The following commit(s) were added to refs/heads/master by this push:
     new e1860ab623 [NO ISSUE]: Skip logging empty list if no files will be 
deleted
e1860ab623 is described below

commit e1860ab6232c5e9abfd4855709f01b19ffd9f269
Author: Hussain Towaileb <[email protected]>
AuthorDate: Wed May 29 09:39:27 2024 +0300

    [NO ISSUE]: Skip logging empty list if no files will be deleted
    
    Change-Id: I854f39689b30c3c3fa53cb845477c321441e97a2
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18326
    Reviewed-by: Murtadha Hubail <[email protected]>
    Tested-by: Hussain Towaileb <[email protected]>
---
 .../src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
 
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
index a3079e6da5..00db458683 100644
--- 
a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
+++ 
b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/lazy/ParallelCacher.java
@@ -157,7 +157,10 @@ public final class ParallelCacher implements 
IParallelCacher {
 
     @Override
     public boolean remove(Collection<FileReference> deletedFiles) {
-        LOGGER.info("Deleting {}", deletedFiles);
+        if (!deletedFiles.isEmpty()) {
+            LOGGER.info("Deleting {}", deletedFiles);
+        }
+
         for (FileReference fileReference : deletedFiles) {
             remove(fileReference);
         }

Reply via email to