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 2A1ECFB9A for ; Fri, 29 Mar 2013 01:19:16 +0000 (UTC) Received: (qmail 66052 invoked by uid 500); 29 Mar 2013 01:19:15 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 65930 invoked by uid 500); 29 Mar 2013 01:19:15 -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 65921 invoked by uid 500); 29 Mar 2013 01:19:15 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 65918 invoked by uid 99); 29 Mar 2013 01:19:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Mar 2013 01:19:15 +0000 Date: Fri, 29 Mar 2013 01:19:15 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4171) Current database in metastore.Hive is not consistent with SessionState 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-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated HIVE-4171: -------------------------------- Attachment: HIVE-4171.3.patch I think it would be better to store this information in HiveConf and remove the member from Hive class. This would mean that there will be only one source for truth for his information (instead of having it in Hive and SessionState classes). I can submit another patch with fix for the TODO in patch and unit tests if you agree . HIVE-4171.3.patch (also in https://reviews.apache.org/r/10180/ ) > Current database in metastore.Hive is not consistent with SessionState > ---------------------------------------------------------------------- > > Key: HIVE-4171 > URL: https://issues.apache.org/jira/browse/HIVE-4171 > Project: Hive > Issue Type: Bug > Components: CLI > Reporter: Navis > Assignee: Navis > Labels: HiveServer2 > Attachments: HIVE-4171.3.patch, HIVE-4171.D9399.1.patch, HIVE-4171.D9399.2.patch > > > metastore.Hive is thread local instance, which can have different status with SessionState. Currently the only status in metastore.Hive is database name in use. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira