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

extend OpenTxnRequest with transaction type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0-alpha-1
    • Transactions
    • None
    • n/a

    Description

      There is a TXN_TYPE field in TXNS table.

      There is TxnHandler.TxnType with legal values. It would be useful to TxnType a Thrift, add a new COMPACTION type object and allow setting it in OpenTxnRequest.

      Since HIVE-20823 compactor starts a txn and should set this.

      Down the road we may want to set READ_ONLY either based on parsing of the query or user input which can make TxnHandler.commitTxn faster.

      Attachments

        1. HIVE-21036.01.patch
          37 kB
          Igor Kryvenko
        2. HIVE-21036.02.patch
          36 kB
          Igor Kryvenko
        3. HIVE-21036.03.patch
          37 kB
          Igor Kryvenko
        4. HIVE-21036.04.patch
          30 kB
          Igor Kryvenko

        Issue Links

          Activity

            People

              ikryvenko Igor Kryvenko
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: