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

Regression: ENTITY_DELETE audit overwrites the existing audits for a hive table (entities created through hooks are affected)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.8-incubating, trunk
    • 0.8-incubating
    • atlas-core
    • None

    Description

      ENTITY_DELETE audit is overwriting the entity create/update audit for hive entities. basically the entity creation calls made through hooks is broken.

      Steps to repro:
      1. create table employee4 (name String);
      2. drop table employee4;

      After the above two steps the audit tab will not show any entity create event. It just logs the delete event.

      https://172.27.28.206:21443/api/atlas/entities/cdcd1e7a-823d-40c8-879d-de35efbf9f25/audit?count=26

      {  
         "requestId":"pool-2-thread-10 - 8dcc84f5-78a3-43af-bac6-45ec1ff38f80",
         "events":[  
            {  
               "entityId":"cdcd1e7a-823d-40c8-879d-de35efbf9f25",
               "timestamp":1487672066373,
               "action":"ENTITY_DELETE",
               "details":"Deleted entity",
               "eventKey":"cdcd1e7a-823d-40c8-879d-de35efbf9f25:1487672066373"
            }
         ]
      }
      

      Attachments

        1. ATLAS-1577.patch
          9 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: