----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/72330/ -----------------------------------------------------------
Review request for atlas, Madhan Neethiraj, Nikhil Bonte, and Nixon Rodrigues. Bugs: ATLAS-3715 https://issues.apache.org/jira/browse/ATLAS-3715 Repository: atlas Description ------- **Approach** - Create a new flag within _RequestContext_ that indicates if migration import is in progress. - Refactored _mapPrimitiveAttribute_ to not create _AtlasAttributeMutationContext_ for primitive attributes. The new method is used in entity and relationship mapping. - Within _mapPrimitiveAttribute_ skip setting the uniqueProperty name. **Reason** - Setting this property causes a lock to be applied, which causes regular operations to be paused. This causes throughput to be reduced by over 75%. - This attribute would be handled post-upgrade of this attribute via the _UniqueAttributePatch_. Diffs ----- repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java 0d5b6314d repository/src/main/java/org/apache/atlas/repository/store/graph/v2/bulkimport/pc/EntityConsumer.java e0a457334 server-api/src/main/java/org/apache/atlas/RequestContext.java 282a66f1d Diff: https://reviews.apache.org/r/72330/diff/1/ Testing ------- **Volume test** Enable metric log. Baseline: 25 secs. New: 2 secs. ``` atlas.migration.mode.batch.size=700 atlas.migration.mode.workers=24 ```` Thanks, Ashutosh Mestry