You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2015/11/12 03:46:11 UTC

[jira] [Created] (HIVE-12389) CompactionTxnHandler.cleanEmptyAbortedTxns() should safeguard against huge IN clauses

Eugene Koifman created HIVE-12389:
-------------------------------------

             Summary: CompactionTxnHandler.cleanEmptyAbortedTxns() should safeguard against huge IN clauses
                 Key: HIVE-12389
                 URL: https://issues.apache.org/jira/browse/HIVE-12389
             Project: Hive
          Issue Type: Bug
          Components: Metastore, Transactions
    Affects Versions: 1.0.0
            Reporter: Eugene Koifman
            Assignee: Eugene Koifman


in extreme situations, due to misconfigurations, it may be possible to have 100Ks or even 1Ms of aborted txns.
This causes delete from TXNS where txn_id in (...) to have a huge IN clause and DB chokes.  

Should use something like TxnHandler.TIMED_OUT_TXN_ABORT_BATCH_SIZE to break up delete into multiple queries.  (Incidentally the batch size should likely be 1000, not 100, maybe even configurable).





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)