You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/02/03 23:24:00 UTC

[jira] [Commented] (ATLAS-4546) Hive DB creation fails when user provides both location & managedLocation

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

ASF subversion and git services commented on ATLAS-4546:
--------------------------------------------------------

Commit 8543adb69d57584f8c1ca6401410df04867f34fb in atlas's branch refs/heads/master from Radhika Kundam
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=8543adb ]

ATLAS-4546: Hive DB creation fails when user provides both location & managedLocation

Signed-off-by: Sidharth Mishra <si...@apache.org>


> Hive DB creation fails when user provides both location & managedLocation
> -------------------------------------------------------------------------
>
>                 Key: ATLAS-4546
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4546
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Radhika Kundam
>            Assignee: Radhika Kundam
>            Priority: Major
>
> Creating hive db by providing values for both location and managedLocation as below query is failed for all storage paths with parent_child relationship.
> {code:java}
> CREATE DATABASE IF NOT EXISTS test_db1 LOCATION 'abfs://prod@dummy.dfs.core.windows.net/test_db1/external' MANAGEDLOCATION 'abfs://prod@dummy.dfs.core.windows.net/test_db1/managed';{code}
> Root cause of the issue is while creating PARENT_CHILD relationship for location and managedlocation path entities, Atlas is missing to check if already parent directory exists in context or not and every time create new entity for parent directory.Because of that both location and managedLocation trying to refer same parent directory but with different guids.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)