Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14535 add insert-only ACID tables to Hive
  3. HIVE-17650

DDLTask.handleRemoveMm() assumes locks not present

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Transactions
    • None

    Description

      This moves every file in the table from under delta_x_x/ to root of the table/partition
      How would this work for bucketed tables? Will it create bucket_x_copy_N files?
      This could create 1000s of copy_N files - this will likely break something

      The comments in the method assume locks are present - this would imply that there are appropriate Read/WriteEntity objects already created - I doubt this is the case for a table property change.

      It seems like this kind of op should require an Exclusive lock at table level to prevent concurrent inserts (into new delta_x_x/)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: