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 3709E200C0F for ; Fri, 23 Dec 2016 02:46:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 35A3F160B41; Fri, 23 Dec 2016 01:46: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 56687160B35 for ; Fri, 23 Dec 2016 02:46:36 +0100 (CET) Received: (qmail 49874 invoked by uid 500); 23 Dec 2016 01:46:35 -0000 Mailing-List: contact commits-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list commits@atlas.incubator.apache.org Received: (qmail 49784 invoked by uid 99); 23 Dec 2016 01:46:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 01:46:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C1DF8C17D1 for ; Fri, 23 Dec 2016 01:46:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id duhOtWaDn_ht for ; Fri, 23 Dec 2016 01:46:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 38F6D5F5C6 for ; Fri, 23 Dec 2016 01:46:31 +0000 (UTC) Received: (qmail 48514 invoked by uid 99); 23 Dec 2016 01:46:30 -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, 23 Dec 2016 01:46:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2BA7DDFCF4; Fri, 23 Dec 2016 01:46:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: madhan@apache.org To: commits@atlas.incubator.apache.org Date: Fri, 23 Dec 2016 01:46:35 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [06/50] [abbrv] incubator-atlas git commit: ATLAS-1097 Fix a potential NPE issue flagged by Coverity scan (mneethiraj via shwethags) archived-at: Fri, 23 Dec 2016 01:46:37 -0000 ATLAS-1097 Fix a potential NPE issue flagged by Coverity scan (mneethiraj via shwethags) (cherry picked from commit 89f25d411897dbd35a2baf7a96a0cf137c273f4a) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/8db87208 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/8db87208 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/8db87208 Branch: refs/heads/0.7-incubating Commit: 8db872086dc02a5de393bf374d81fec552dd77af Parents: 00afd32 Author: Shwetha GS Authored: Fri Aug 5 16:25:03 2016 +0530 Committer: Madhan Neethiraj Committed: Thu Dec 22 14:48:30 2016 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/hive/hook/HiveHook.java | 12 ++++++++---- release-log.txt | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/8db87208/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java ---------------------------------------------------------------------- diff --git a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java index 7905bcf..14359c5 100755 --- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java +++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java @@ -773,10 +773,14 @@ public class HiveHook extends AtlasHook implements ExecuteWithHookContext { SortedMap hiveOutputsMap) throws HiveException { HiveOperation op = eventContext.getOperation(); if (isCreateOp(eventContext)) { - Table outTable = getEntityByType(sortedHiveOutputs, Type.TABLE).getTable(); - //refresh table - outTable = dgiBridge.hiveClient.getTable(outTable.getDbName(), outTable.getTableName()); - return HiveMetaStoreBridge.getTableProcessQualifiedName(dgiBridge.getClusterName(), outTable); + Entity entity = getEntityByType(sortedHiveOutputs, Type.TABLE); + + if (entity != null) { + Table outTable = entity.getTable(); + //refresh table + outTable = dgiBridge.hiveClient.getTable(outTable.getDbName(), outTable.getTableName()); + return HiveMetaStoreBridge.getTableProcessQualifiedName(dgiBridge.getClusterName(), outTable); + } } StringBuilder buffer = new StringBuilder(op.getOperationName()); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/8db87208/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index 1091ede..8e0ee38 100644 --- a/release-log.txt +++ b/release-log.txt @@ -27,6 +27,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags) ALL CHANGES: +ATLAS-1097 Fix a potential NPE issue flagged by Coverity scan (mneethiraj via shwethags) ATLAS-1090 UI: Multi-Select Tagging. (Kalyanikashikar via kevalbhatt) ATLAS-1092 Add Table.CreateTime to process qualified Name for all hive_process (sumasai via shwethags) ATLAS-1096 Modify HveMetaStoreBridge.import to use getEntity instead of DSL (sumasai via shwethags)