atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashutosh Mestry <>
Subject Re: Review Request 65220: Import: Support for Types with Relationship Attributes
Date Fri, 19 Jan 2018 17:29:03 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 19, 2018, 5:29 p.m.)

Review request for atlas, Madhan Neethiraj and Sarath Subramanian.


Updates include: Addressed review comments.

Bugs: ATLAS-2372

Repository: atlas


After introduction of _relationshipAttributes_ the import of types with relationship attributes
started failing.

Root cause: The _AtlasEntityGraphDiscoveryV1_ started using _relationshipAttribute_ to discover
entities. This caused more entities to be discovered than what was happening before. This
caused the single stream entity not to lookup entities correctly. Failures started occuring
when these additional entities started getting connected by edges.

Example: _hive_db_ has relationship attribute that now has relationship pointing to _hive_table_.
This caused many more entities to be discovered. This also has a side effect of bringing-in
way more entities than needed.

With relationshipAttributes, edges started receiving GUIDs. Import process did not handle
creating of edges with incoming guids. 

- The new _AtlasEntityGraphDiscoveryV1_ entitiy discovery approach using relationships is
not being used during import. Additional discussion are needed to guage validity of this approach.
- _EntityMutationContext_ now has additional getter to know of import is in progress.
- Edge creation (new method _AtlasRelationshipStoreV1.createEdgeWithGuid_) has been modified
to support edge creation using specific guid.

Diffs (updated)

  repository/src/main/java/org/apache/atlas/repository/impexp/ c5e6534c

  repository/src/test/java/org/apache/atlas/repository/impexp/ ab25faaa




**Unit tests**
- Additional tests for testing entities with relationships.
- (To execute tests locally, place the attached zip at: _./repository/src/test/resources_

**Functional tests**
- Suite of tests that verify export-import-export and diff comparision for accuracy testing.

File Attachments

Additional resource


Ashutosh Mestry

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message