You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/09/14 00:27:00 UTC

[jira] [Commented] (ASTERIXDB-3498) Misalignment between operators assigned locations

    [ https://issues.apache.org/jira/browse/ASTERIXDB-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881725#comment-17881725 ] 

ASF subversion and git services commented on ASTERIXDB-3498:
------------------------------------------------------------

Commit 4481a12e56a733beec5fc6aa2cc2904d161662e6 in asterixdb's branch refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=4481a12e56 ]

[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>


> Misalignment between operators assigned locations
> -------------------------------------------------
>
>                 Key: ASTERIXDB-3498
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3498
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>              Labels: triaged
>
> Datasets are always created on the sorted cluster locations (of the node ids). For example, if there are two nodes with ids 'a' and 'b' each having 3 partitions, then one possible cluster locations could be as follows (depending on how the nodes join the cluster):
>  {{cluster locations = ['b', 'b', 'b', 'a', 'a', 'a']}}
> When a dataset is created, its locations will be the sorted cluster locations which are used by data-scan operators:
>  {{['a', 'a', 'a', 'b', 'b', 'b']}}
> This situation will cause failures for queries with operators getting assigned the cluster locations. This can happen for operators that are not connected to data-scan operators, and therefore they will use the cluster locations instead of inheriting the data-scan operators sorted locations. This misalignment results in a situation where the first activity of an operator runs in one partition like the build activity of hash-join, and the second probe activity runs in a completely different partition when those two activities should have run in the same partition.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)