Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4069

Export/Importing a recreated deleted entity has the relationshipStatus set to ACTIVE instead of DELETED for deleted entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • atlas-core
    • None

    Description

      Run the below queries:

      1. create database IF NOT EXISTS database34_${var:rand_str};
      2. create table IF NOT EXISTS database34_${var:rand_str}.table_${var:rand_str}_34(id int,name string,dob date);
      3. drop table database34_${var:rand_str}.table_${var:rand_str}_34;
      4. drop database database34_${var:rand_str};
      5. create database IF NOT EXISTS database34_${var:rand_str};
      6. create table IF NOT EXISTS database34_${var:rand_str}.table_${var:rand_str}_34(id int,name string,dob date);

      As you can see, create a database/table, followed by drop statements, and then recreated them.

      Hence, there are 2 entities with same name, but the state is different (1 is ACTIVE, 1 is DELETED).

      Text compare:

       

      Attachments

        1. Screenshot 2020-12-09 at 5.51.10 PM.png
          72 kB
          Umesh Padashetty
        2. ATLAS-4069-V3.patch
          22 kB
          Mandar Ambawane

        Issue Links

          Activity

            People

              mandar_va Mandar Ambawane
              umesh.padashetty Umesh Padashetty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: