commit | e089c944329fdc4cd2d7b51b70f77da03f8acdbf | [log] [tgz] |
---|---|---|
author | Michael Blow <michael.blow@couchbase.com> | Fri May 02 07:44:45 2025 -0400 |
committer | Michael Blow <mblow@apache.org> | Fri May 02 12:00:32 2025 +0000 |
tree | 122b721ca993a71b13132611cd0518408defc0b9 | |
parent | 57c29f4aae675fa4c44c218012c3783a0b745808 [diff] |
[NO ISSUE][*DB][STO] Fix gate for cloud list eventually consistent check Correct inverted check to validate list results when the CLOUD_STORAGE_LIST_EVENTUALLY_CONSISTENT option is configured true Ext-ref: MB-66343 Change-Id: I561975e684a02a92cd05ddaadf88e1a4ee56c899 Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19732 Reviewed-by: Michael Blow <mblow@apache.org> Reviewed-by: Ritik Raj <ritik.raj@couchbase.com> Tested-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3CloudClient.java b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3CloudClient.java index 77d34a2..fc35792 100644 --- a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3CloudClient.java +++ b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3CloudClient.java
@@ -371,7 +371,7 @@ private <T, C extends Collection<T>> C ensureListConsistent(C cloudFiles, String bucket, Function<T, String> pathExtractor) { - if (config.isStorageListEventuallyConsistent()) { + if (!config.isStorageListEventuallyConsistent()) { return cloudFiles; } Iterator<T> iterator = cloudFiles.iterator();