This is an automated email from the ASF dual-hosted git repository. mhubail pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/asterixdb.git
commit 63367364d13b939a093df3fba8394226a751012e Author: Hussain Towaileb <[email protected]> AuthorDate: Tue Feb 18 21:24:11 2025 +0300 [NO ISSUE][EXT]: Properly check if prefix is empty Ext-ref: MB-65358 Change-Id: I253289d5a64b44858437e8f2c12203f803a2b7db Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19445 Reviewed-by: Michael Blow <[email protected]> Tested-by: Michael Blow <[email protected]> Integration-Tests: Jenkins <[email protected]> --- .../org/apache/asterix/cloud/clients/google/gcs/GCSCloudClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/google/gcs/GCSCloudClient.java b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/google/gcs/GCSCloudClient.java index cb246fff26..924f34a3ec 100644 --- a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/google/gcs/GCSCloudClient.java +++ b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/google/gcs/GCSCloudClient.java @@ -265,7 +265,7 @@ public class GCSCloudClient implements ICloudClient { guardian.checkReadAccess(bucket, path); profilerLimiter.objectsList(); Page<Blob> blobs = gcsClient.list(bucket, BlobListOption.prefix(config.getPrefix() + path)); - return !blobs.hasNextPage(); + return !blobs.iterateAll().iterator().hasNext(); } @Override
