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

HiveTxnManager should be stateless

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.13.1
    • None
    • Locking
    • None

    Description

      In order to integrate HCat with Hive ACID, we should be able to create an instance of HiveTxnManager and use it to acquire locks, and release locks from a different instance of HiveTxnManager.

      One use case where this shows up is when a job using HCat is retried, since calls to TxnManager are made from the jobs OutputCommitter.

      Another, is HCatReader/Writer. For example, TestReaderWriter, calls setupJob() from one instance of OutputCommitterContainer and commitJob() from another instance. The 2nd case is perhaps better solved by ensuring there is only 1 instance of OutputCommitterContainer.

      Attachments

        1. HIVE-7256.addendum.patch
          6 kB
          Eugene Koifman
        2. HIVE-7256.patch
          32 kB
          Alan Gates

        Issue Links

          Activity

            People

              gates Alan Gates
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: