Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76C101144D for ; Thu, 19 Jun 2014 04:00:26 +0000 (UTC) Received: (qmail 87659 invoked by uid 500); 19 Jun 2014 04:00:25 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 87491 invoked by uid 500); 19 Jun 2014 04:00:25 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 87109 invoked by uid 500); 19 Jun 2014 04:00:25 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 87106 invoked by uid 99); 19 Jun 2014 04:00:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2014 04:00:25 +0000 Date: Thu, 19 Jun 2014 04:00:25 +0000 (UTC) From: "Alan Gates (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7249) HiveTxnManager.closeTxnManger() throws if called after commitTxn() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-7249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alan Gates updated HIVE-7249: ----------------------------- Status: Patch Available (was: Open) > HiveTxnManager.closeTxnManger() throws if called after commitTxn() > ------------------------------------------------------------------ > > Key: HIVE-7249 > URL: https://issues.apache.org/jira/browse/HIVE-7249 > Project: Hive > Issue Type: Bug > Components: Locking > Affects Versions: 0.13.1 > Reporter: Eugene Koifman > Assignee: Alan Gates > Attachments: HIVE-7249.patch > > > I openTxn() and acquireLocks() for a query that looks like "INSERT INTO T PARTITION(p) SELECT * FROM T". > Then I call commitTxn(). Then I call closeTxnManger() I get an exception saying lock not found (the only lock in this txn). So it seems TxnMgr doesn't know that commit released the locks. > Here is the stack trace and some log output which maybe useful: > {noformat} > 2014-06-17 15:54:40,771 DEBUG mapreduce.TransactionContext (TransactionContext.java:onCommitJob(128)) - onCommitJob(job_local557130041_0001). this=46719652 > 2014-06-17 15:54:40,771 DEBUG lockmgr.DbTxnManager (DbTxnManager.java:commitTxn(205)) - Committing txn 1 > 2014-06-17 15:54:40,771 DEBUG txn.TxnHandler (TxnHandler.java:getDbTime(872)) - Going to execute query > 2014-06-17 15:54:40,772 DEBUG txn.TxnHandler (TxnHandler.java:heartbeatTxn(1423)) - Going to execute query