Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16177 non Acid to acid conversion doesn't handle _copy_N files
  3. HIVE-16688

Make sure Alter Table to set transaction=true acquires X lock

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.3.0
    • 3.0.0
    • Transactions
    • None

    Description

      suppose we have non-acid table with some data
      An insert op starts (long running) (with hive.txn.strict.locking.mode=false this takes shared lock)
      An alter table runs to add (transactional=true)
      An update is run which will read the list of "original" files and assign IDs on the fly which are written to a delta file.
      The long running insert completes.
      Another update is run which now sees a different set of "original" files and will (most likely) assign different IDs.

      Need to make sure to mutex this

      To clarify: The X lock is acquired for "An alter table runs to add (transactional=true)"

      Attachments

        1. HIVE-16688.02.patch
          5 kB
          Eugene Koifman
        2. HIVE-16688.01.patch
          5 kB
          Eugene Koifman

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: