You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Radhika Kundam (Jira)" <ji...@apache.org> on 2022/02/01 22:44:00 UTC

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

Radhika Kundam created ATLAS-4546:
-------------------------------------

             Summary: 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: 2.2.0
            Reporter: Radhika Kundam
            Assignee: Radhika Kundam


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)