hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <>
Subject [jira] [Created] (HIVE-16933) ORA-00060: deadlock detected while waiting on commit
Date Wed, 21 Jun 2017 18:21:00 GMT
Eugene Koifman created HIVE-16933:

             Summary: ORA-00060: deadlock detected while waiting on commit
                 Key: HIVE-16933
             Project: Hive
          Issue Type: Improvement
          Components: Transactions
    Affects Versions: 1.2.0
            Reporter: Eugene Koifman

When running transactional workload (esp streaming ingest api) with Oracle backed Hive metastore
it's possible to see Deadlock exceptions from the DB.

This due to lack of indexes on Foreign Key columns of Acid related metastore tables.
For example, TXN_COMPONENTS references TXNS.  It should have


2017-06-20 13:42:00,687 ERROR [pool-3-thread-182]: txn.TxnHandler (
- Too many repeated deadlocks in commitTxn(CommitTxnRequest(txnid:293)), giving up.
2017-06-20 13:42:00,696 ERROR [pool-3-thread-182]: metastore.RetryingHMSHandler (
- MetaException(message:Unable to update transaction database java.sql.SQLException: ORA-00060:
deadlock detected while waiting for resource

        at oracle.jdbc.driver.T4CTTIoer.processError(
        at oracle.jdbc.driver.T4CTTIoer.processError(
        at oracle.jdbc.driver.T4C8Oall.processError(
        at oracle.jdbc.driver.T4CTTIfun.receive(
        at oracle.jdbc.driver.T4CTTIfun.doRPC(
        at oracle.jdbc.driver.T4C8Oall.doOALL(
        at oracle.jdbc.driver.T4CStatement.doOall8(
        at oracle.jdbc.driver.T4CStatement.executeForRows(
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
        at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(
        at oracle.jdbc.driver.OracleStatement.executeUpdate(
        at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(
        at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(
        at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(
        at org.apache.hadoop.hive.metastore.txn.TxnHandler.commitTxn(

This message was sent by Atlassian JIRA

View raw message