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

Soft and hard deletes, deleting a "DELETED" entity and cleanup of unused types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8-incubating
    • None
    • None
    • None

    Description

      Hello,

      Since the documentation on this feature not clear, could you please answer or confirm the following:

      1. When an entity is deleted, its status goes to "DELETED", this is a soft delete.
      2. Does Atlas version 0.8.0 support hard deletes (HDP 2.6.4 ships with 0.8.0)?
      3. Is the atlas.DeleteHandler.impl configuration key supported in this version?
      4. Is it possible to delete a "DELETED" entity?

      I am asking this because I am stuck in the following scenario:

      • Create a new ENTITY type named "custom_type"
      • Create an entity of that type "entity_1_of_custom_type", its status is "ACTIVE"
      • Delete the entity "entity_1_of_custom_type", its status is "DELETED"
      • Delete the ENTITY type named "custom_type"
      • I get an error: {"errorCode":"ATLAS-409-00-002","errorMessage":"Given type custom_type has references"}

      How is it possible in this case to cleanup both the DELETED entity and the unused type "custom_type"?

      Thanks!

      Attachments

        1. hard_delete_soft_deleted_items.diff
          5 kB
          Michael Smedberg

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkiami Mark Kiami
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: