Skip to content
Permalink
Browse files
[NO ISSUE][CLUS] Order Cluster Partition Constraints Similar to Node …
…Groups

- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- Order the list of nodes in the cluster partition constraints
  using the same ordering as nodegroups to allow data source
  functions attempting to access storage to be routed to the
  correct storage partition.

Change-Id: Iba193bccb0c9c28f24e8d7136ce394abf780fa00
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/8783
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
  • Loading branch information
mhubail committed Nov 8, 2020
1 parent 32f4269 commit a8bad1a13c64a94d8fa57e26609d991849e19d52
Showing 1 changed file with 2 additions and 0 deletions.
@@ -299,6 +299,8 @@ private synchronized void resetClusterPartitionConstraint() {
}
}
clusterActiveLocations.removeAll(pendingRemoval);
// for operators attempting to access storage, order the nodes list similar to a nodegroup
Collections.sort(clusterActiveLocations);
clusterPartitionConstraint =
new AlgebricksAbsolutePartitionConstraint(clusterActiveLocations.toArray(new String[] {}));
}

0 comments on commit a8bad1a

Please sign in to comment.