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

add ThriftHiveMetastore.get_open_txns(long txnid)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Metastore, Transactions
    • None

    Description

      we currently have ThriftHiveMetastore.get_open_txns() which maps to TxnHandler.getOpenTxns(). The usual usage is TxnUtils.createValidReadTxnList(GetOpenTxnsResponse txns, long currentTxn) where the complete list transactions is obtained from Metastore and then anything above currentTxn is thrown away.
      Would be useful to add ThriftHiveMetastore.get_open_txns(long txnid) and TxnHandler.getOpenTxns(long) to not retrieve things that will be thrown away. Especially when there are a lot of running transactions.

      Attachments

        1. HIVE-20459.01.patch
          129 kB
          Igor Kryvenko
        2. HIVE-20459.02.patch
          130 kB
          Igor Kryvenko
        3. HIVE-20459.03.patch
          130 kB
          Igor Kryvenko
        4. HIVE-20459.04.patch
          129 kB
          Igor Kryvenko

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: