You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Ashutosh Mestry (JIRA)" <ji...@apache.org> on 2017/04/25 21:27:04 UTC

[jira] [Commented] (ATLAS-1715) If there exists a [DELETED] entity with the same in atlas and importing an entity with the same name results in updating the deleted entity. Instead it should create a new entity.

    [ https://issues.apache.org/jira/browse/ATLAS-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983649#comment-15983649 ] 

Ashutosh Mestry commented on ATLAS-1715:
----------------------------------------

Since this functionality has not been implemented, this is technically not a bug. It will be an improvement.
Given that export-import functionality is going to be used in backup recovery and replication, it would not be useful if we do not replicate correctly.

Scenario: Cluster CL1 needs to be replicated to cluster CL2. Consumer initiates an export on CL1, copies over the generated ZIP to CL2 and starts an import with appropriate options.

In the scenario described, it would not be a good idea to add changes to the import process. That would prevent CL2 being replica of CL1. Granted that some minor changes would be necessary so that the replicated entities look like they belong to CL2.

Hope this makes sense.

/CC [~madhan.neethiraj]

> If there exists a [DELETED] entity with the same in atlas and importing an entity with the same name results in updating the deleted entity.  Instead it should create a new entity.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1715
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1715
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.8-incubating
>            Reporter: Ayub Pathan
>            Priority: Critical
>             Fix For: trunk, 0.9-incubating
>
>
> If there exists a [DELETED] entity with the same in atlas and importing an entity with the same name results in updating the deleted entity.  Instead it should create a new entity.
> STR:
> * Create a hive database db1.
> * Using Atlas export call, get the db1 information exported to a zip file.
> * Drop the hive database(db1).
> * Import the zip file, using atlas import api call.
> Since the entity is already deleted, import call should create a new entity for the metadata. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)