Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19961

Add partition if exists on transactional CRUD table acquires X lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Transactions
    • Labels:
      None

      Description

      This is necessary for correctness since each add partition consists of 2 parts

      1. Add Partition metadata object to metastore
      2. 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ekoifman Eugene Koifman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: