Eugene Koifman created HIVE-19961:
-------------------------------------

             Summary: Add partition if exists on transactional CRUD table 
acquires X lock
                 Key: HIVE-19961
                 URL: https://issues.apache.org/jira/browse/HIVE-19961
             Project: Hive
          Issue Type: Bug
          Components: Transactions
    Affects Versions: 3.0.0
            Reporter: Eugene Koifman
            Assignee: Eugene Koifman


This is necessary for correctness since each add partition consists of 2 parts
 # Add Partition metadata object to metastore
 # Create a delta dir and copy data there.  

This means it's neither Atomic not Isolated.  Isolation is fixed by using X 
lock (which is currently on the table.  todo: see if it can be made on the 
partition being created - this may block table level locks...)

Atomicity would have to be addressed by adding a write ID to Partition to that 
it's not visible until Hive transaction has committed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to