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

Import Service: Importing to Existing Database Fails

    XMLWordPrintableJSON

Details

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

    Description

      Background

      Existing implementation of import assumes that the top-level entity is absent in the server that it is importing to.

      Users create a place holder entity and then attempt an import. This results in failure to import.

      Steps to Duplicate

      • From beeline: create database stocks; From Atlas ensure that hive_db with qualifiedName: stocks@cl1 is created.
      • Import stocks database (from /repository/src/test/resources/stocks.zip).

      Expected Results

      Import will be performed successfully.

      Actual Results

      Import fails with exception.

      Solution Guidance

      • Before starting import, check existence of top-level entities on the server.
      • If top-level entity exists, update its GUID with the one from incoming entity. Preserve the changed guid a new field say __historicalGuids.
      • If none exist, proceed normally.

       

      Attachments

        1. ATLAS-3193-Import-to-Existing.patch
          37 kB
          Ashutosh Mestry

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: