You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Igor Kryvenko (JIRA)" <ji...@apache.org> on 2018/09/02 08:46:00 UTC
[jira] [Updated] (HIVE-20459) add
ThriftHiveMetastore.get_open_txns(long txnid)
[ https://issues.apache.org/jira/browse/HIVE-20459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Kryvenko updated HIVE-20459:
---------------------------------
Attachment: HIVE-20459.01.patch
> add ThriftHiveMetastore.get_open_txns(long txnid)
> -------------------------------------------------
>
> Key: HIVE-20459
> URL: https://issues.apache.org/jira/browse/HIVE-20459
> Project: Hive
> Issue Type: Improvement
> Components: Metastore, Transactions
> Reporter: Eugene Koifman
> Assignee: Igor Kryvenko
> Priority: Minor
> Attachments: HIVE-20459.01.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)