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

Migration: New Types Referenced within Existing Types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, trunk
    • trunk, 2.1.0
    • atlas-core
    • None

    Description

      Background

      During migration import (and regular Import) types coming in are processed in the following way:

      • New types are determined.
      • Modification to existing types are determined.

      Steps to Duplicate

      Pre-requisites:

      • Create type definition with new structDef.
      • Modify hive_table (existing) such a new attribute references the structDef.

      Steps

      • Initiate migration import.

      Expected outcome

      • New types should be part of the types definition (using REST APIs and property pages).
      • Data should get migrated.

      Actual outcome

      • Type definition import fails.

      Additional information

      Stack trace:

      org.apache.atlas.exception.AtlasBaseException: Given typename hive_table_profile_data was invalid    
      at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore.tryUpdateByName(AtlasTypeDefGraphStore.java:1025)    
      at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore.updateEntityDefByName(AtlasTypeDefGraphStore.java:285)    
      at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore$$FastClassBySprin
      

      Attachments

        Activity

          People

            amestry Ashutosh Mestry
            amestry Ashutosh Mestry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: