Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
trunk
-
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.