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 1BFDC200C48 for ; Fri, 24 Feb 2017 02:08:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1AE2C160B7D; Fri, 24 Feb 2017 01:08:37 +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 5E0B1160B7E for ; Fri, 24 Feb 2017 02:08:36 +0100 (CET) Received: (qmail 33048 invoked by uid 500); 24 Feb 2017 01:08:34 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 31525 invoked by uid 99); 24 Feb 2017 01:08:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 01:08:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99612DFE8F; Fri, 24 Feb 2017 01:08:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sershe@apache.org To: commits@hive.apache.org Date: Fri, 24 Feb 2017 01:08:46 -0000 Message-Id: <69d0b4c4e4ed4d06b2159217f1e447fa@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [14/50] [abbrv] hive git commit: HIVE-15969 : Failures in TestRemoteHiveMetaStore, TestSetUGIOnOnlyServer (Slim Bouguerra via Thejas Nair) archived-at: Fri, 24 Feb 2017 01:08:37 -0000 HIVE-15969 : Failures in TestRemoteHiveMetaStore, TestSetUGIOnOnlyServer (Slim Bouguerra via Thejas Nair) Signed-off-by: Ashutosh Chauhan Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/e618bd1b Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e618bd1b Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e618bd1b Branch: refs/heads/hive-14535 Commit: e618bd1b45bc45f96b27698fd0c97fee6b9c57e6 Parents: 5c29371 Author: Slim Bouguerra Authored: Fri Feb 17 14:15:15 2017 -0800 Committer: Ashutosh Chauhan Committed: Fri Feb 17 14:15:15 2017 -0800 ---------------------------------------------------------------------- .../apache/hadoop/hive/metastore/HiveMetaStoreClient.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/e618bd1b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java ---------------------------------------------------------------------- diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 70f3a6b..7002620 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -739,12 +739,14 @@ public class HiveMetaStoreClient implements IMetaStoreClient { hook.commitCreateTable(tbl); } success = true; - } catch (Exception e){ - LOG.error("Got exception from createTable", e); } finally { if (!success && (hook != null)) { - hook.rollbackCreateTable(tbl); + try { + hook.rollbackCreateTable(tbl); + } catch (Exception e){ + LOG.error("Create rollback failed with", e); + } } } }