Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4546

Hive DB creation fails when user provides both location & managedLocation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 2.2.0
    • None
    • atlas-core
    • None

    Description

      Creating hive db by providing values for both location and managedLocation as below query is failed for all storage paths with parent_child relationship.

      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';

      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.

      Attachments

        Issue Links

          Activity

            People

              radhikak Radhika Kundam
              radhikak Radhika Kundam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: