Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8A8BF200CBD for ; Thu, 22 Jun 2017 00:50:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 895D4160BF0; Wed, 21 Jun 2017 22:50:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CBE22160BD5 for ; Thu, 22 Jun 2017 00:50:04 +0200 (CEST) Received: (qmail 73615 invoked by uid 500); 21 Jun 2017 22:50:04 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 73591 invoked by uid 99); 21 Jun 2017 22:50:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2017 22:50:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DC227CF0A1 for ; Wed, 21 Jun 2017 22:50:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9MDV1nhyAK8k for ; Wed, 21 Jun 2017 22:50:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D00B25FDCE for ; Wed, 21 Jun 2017 22:50:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DCAC4E0D55 for ; Wed, 21 Jun 2017 22:50:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 290FA21DD5 for ; Wed, 21 Jun 2017 22:50:00 +0000 (UTC) Date: Wed, 21 Jun 2017 22:50:00 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-16933) ORA-00060: deadlock detected while waiting on commit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 21 Jun 2017 22:50:05 -0000 [ https://issues.apache.org/jira/browse/HIVE-16933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koifman resolved HIVE-16933. ----------------------------------- Resolution: Fixed Fix Version/s: 2.4.0 3.0.0 2.3.0 this was fixed in HIVE-16399 > ORA-00060: deadlock detected while waiting on commit > ---------------------------------------------------- > > Key: HIVE-16933 > URL: https://issues.apache.org/jira/browse/HIVE-16933 > Project: Hive > Issue Type: Improvement > Components: Transactions > Affects Versions: 1.2.0 > Reporter: Eugene Koifman > Assignee: Eugene Koifman > Fix For: 2.3.0, 3.0.0, 2.4.0 > > > 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 > CREATE INDEX TC_TXNID_INDEX ON TXN_COMPONENTS (TC_TXNID); > {noformat} > 2017-06-20 13:42:00,687 ERROR [pool-3-thread-182]: txn.TxnHandler (TxnHandler.java:checkRetryable(1952)) - 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 (RetryingHMSHandler.java:invokeInternal(195)) - MetaException(message:Unable to update transaction database java.sql.SQLException: ORA-00060: deadlock detected while waiting for resource > at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440) > at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) > at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837) > at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445) > at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191) > at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523) > at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:193) > at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:999) > at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315) > at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1822) > at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1787) > at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:280) > at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) > at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) > at org.apache.hadoop.hive.metastore.txn.TxnHandler.commitTxn(TxnHandler.java:756) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)