You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/10/01 17:39:00 UTC
[jira] [Commented] (ATLAS-3346) Import Service: Add support to
re-activate deleted entity
[ https://issues.apache.org/jira/browse/ATLAS-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16942186#comment-16942186 ]
ASF subversion and git services commented on ATLAS-3346:
--------------------------------------------------------
Commit 74bf4cdaae598bebd3f7956495b93d4e0b1242f6 in atlas's branch refs/heads/master from Nikhil Bonte
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=74bf4cd ]
ATLAS-3346: Support to re-activated deleted entity during import.
Signed-off-by: Ashutosh Mestry <am...@hortonworks.com>
> Import Service: Add support to re-activate deleted entity
> ---------------------------------------------------------
>
> Key: ATLAS-3346
> URL: https://issues.apache.org/jira/browse/ATLAS-3346
> Project: Atlas
> Issue Type: Improvement
> Reporter: Nikhil Bonte
> Assignee: Nikhil Bonte
> Priority: Major
> Attachments: ATLAS-3346-Import-Service-Add-support-to-re-activate-v4.patch
>
>
>
> *Background:*
> Requirement for import API is that if request contains "replicatedFrom" option, in this case import API should activate those tables which are part of import zip but are having state as 'deleted' in Atlas server. E.g.
> * Consider t1...t5 under db1 replicated from source to destination using table level incremental export from source.
> * Next import request at destination contains only t1...t3, in such case t4 & t5 must be deleted at Destination (part of ATLAS-3416).
> * Now next import request at destination contains t1...t4, in such case t4 & its relationships must be re-activated at destination.
> Currently import API do not update state as ACTIVE for such entity. Logs says -
> WARN - [bulkImporter-1:] ~ attempt to activate deleted entity (guid=c5df6bde-a14d-4596-a484-6bece8b7f919). Ignored (AtlasEntityStoreV2:950)
> This jira will support to re-activate deleted entity in such case.
>
> *Solution:*
> * In import API, while processing entity from zip, if zip has entity as ACTIVE & Atlas server has entity as DELETED, re-activate such entity & its relationships.
> * It is also handled that only those relationships will be activated which are present in incoming entity's relationshipAttributes (obtained from zip).
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)