You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by al...@apache.org on 2024/09/14 00:26:25 UTC

(asterixdb) 06/14: [ASTERIXDB-3498][COMP] Use sorted cluster locations

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

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

commit 4481a12e56a733beec5fc6aa2cc2904d161662e6
Author: Ali Alsuliman <al...@gmail.com>
AuthorDate: Thu Aug 29 23:35:44 2024 -0700

    [ASTERIXDB-3498][COMP] Use sorted cluster locations
    
    - user model changes: no
    - storage format changes: no
    - interface changes: no
    
    Details:
    For operators that do not specify the locations where they should be run,
    use the sorted cluster locations so that they are aligned with the
    dataset cluster locations which is also sorted.
    
    Ext-ref: MB-63356
    
    Change-Id: I98af3329c1701560fd9d12d6587fcf1b3e35a842
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18776
    Tested-by: Ali Alsuliman <al...@gmail.com>
    Reviewed-by: Ali Alsuliman <al...@gmail.com>
    Reviewed-by: Hussain Towaileb <hu...@gmail.com>
---
 .../java/org/apache/asterix/metadata/declared/MetadataProvider.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/MetadataProvider.java b/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/MetadataProvider.java
index 53cf3d0058..46ba9dd5a2 100644
--- a/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/MetadataProvider.java
+++ b/asterixdb/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/MetadataProvider.java
@@ -960,7 +960,7 @@ public class MetadataProvider implements IMetadataProvider<DataSourceId, String>
     }
 
     public AlgebricksAbsolutePartitionConstraint getClusterLocations() {
-        return appCtx.getClusterStateManager().getClusterLocations();
+        return appCtx.getClusterStateManager().getSortedClusterLocations();
     }
 
     public Pair<IOperatorDescriptor, AlgebricksPartitionConstraint> buildExternalDataLookupRuntime(