commit | e1860ab6232c5e9abfd4855709f01b19ffd9f269 | [log] [tgz] |
---|---|---|
author | Hussain Towaileb <Hussain.Towaileb@couchbase.com> | Wed May 29 09:39:27 2024 +0300 |
committer | Hussain Towaileb <hussainht@gmail.com> | Wed May 29 09:01:03 2024 +0000 |
tree | bbbbd72c3a3d710aabb9090b0bff382f01876a89 | |
parent | 2941a842e2b7758aa7f647477134c8ce1b9ea285 [diff] |
[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 <mhubail@apache.org> Tested-by: Hussain Towaileb <hussainht@gmail.com>
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 a3079e6..00db458 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 @@ @Override public boolean remove(Collection<FileReference> deletedFiles) { - LOGGER.info("Deleting {}", deletedFiles); + if (!deletedFiles.isEmpty()) { + LOGGER.info("Deleting {}", deletedFiles); + } + for (FileReference fileReference : deletedFiles) { remove(fileReference); }