Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0, trunk
-
None
Description
Background
ATLAS-3193 added support to existing hive_db entity. The implementation did not account for transform applied to the import where the target database was renamed.
Steps to Duplicate
- From an instance of Atlas, export hive_db with name say stocks and few tables, say t1 and t2.
- On a fresh instance of Atlas, via beeline create hive_db with no tables with name say stocks_t1.
- Perform an import of the zip from step 1 with an import transform that renames db name.
Expected Results: Import should populate tables t1 and t2 to stocks_t1.
Actual Results: Import fails with an AtlasSchemaViolation exception as it attempts to overwrite existing db whose GUID differs.
Solution Guidance
- Import operation should handle AtlasSchemaViolation exception and update the GUID. The the implementation where it processes export request attempting to find starting entities is thus not relevant anymore.