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 A003711B55 for ; Tue, 23 Sep 2014 23:39:34 +0000 (UTC) Received: (qmail 89936 invoked by uid 500); 23 Sep 2014 23:39:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 89851 invoked by uid 500); 23 Sep 2014 23:39:34 -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 89838 invoked by uid 500); 23 Sep 2014 23:39:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 89835 invoked by uid 99); 23 Sep 2014 23:39:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 23:39:34 +0000 Date: Tue, 23 Sep 2014 23:39:34 +0000 (UTC) From: "Alan Gates (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8203) ACID operations result in NPE when run through HS2 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-8203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alan Gates updated HIVE-8203: ----------------------------- Attachment: HIVE-8203.patch This patch moves initialization of the transaction manager from runInternal to compile. This way paths that call compile first (such as HS2) will not NPE. Also it moves acquisition of the valid transaction list until after a transaction has been opened and locks are acquired. Finally, I added logic in construction of the valid transaction list to remove the current user's transaction from the list of open transactions so that operations would see rows created inside their own transaction. > ACID operations result in NPE when run through HS2 > -------------------------------------------------- > > Key: HIVE-8203 > URL: https://issues.apache.org/jira/browse/HIVE-8203 > Project: Hive > Issue Type: Bug > Components: Transactions > Affects Versions: 0.14.0 > Reporter: Alan Gates > Assignee: Alan Gates > Priority: Critical > Fix For: 0.14.0 > > Attachments: HIVE-8203.patch > > > When accessing Hive via HS2, any operation requiring the DbTxnManager results in an NPE. -- This message was sent by Atlassian JIRA (v6.3.4#6332)