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 85781200C5B for ; Thu, 27 Apr 2017 22:30:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83F52160BA7; Thu, 27 Apr 2017 20:30:40 +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 CB801160B9E for ; Thu, 27 Apr 2017 22:30:39 +0200 (CEST) Received: (qmail 6376 invoked by uid 500); 27 Apr 2017 20:30:39 -0000 Mailing-List: contact commits-help@sentry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sentry.apache.org Delivered-To: mailing list commits@sentry.apache.org Received: (qmail 6367 invoked by uid 99); 27 Apr 2017 20:30:39 -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; Thu, 27 Apr 2017 20:30:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DAAFCE0005; Thu, 27 Apr 2017 20:30:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hahao@apache.org To: commits@sentry.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: sentry git commit: SENTRY-1727: HMSPathsDumper.cloneToEntry should set authzObjToEntries properly (Lei Xu, Reviewed by: Hao Hao) Date: Thu, 27 Apr 2017 20:30:38 +0000 (UTC) archived-at: Thu, 27 Apr 2017 20:30:40 -0000 Repository: sentry Updated Branches: refs/heads/sentry-ha-redesign bfb0456fc -> 2199b74fb SENTRY-1727: HMSPathsDumper.cloneToEntry should set authzObjToEntries properly (Lei Xu, Reviewed by: Hao Hao) Change-Id: Ic73bcacca592b958c0023a69da5d2907ffb1184b Project: http://git-wip-us.apache.org/repos/asf/sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/2199b74f Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/2199b74f Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/2199b74f Branch: refs/heads/sentry-ha-redesign Commit: 2199b74fb8af4715941c87893518c8288365f4ae Parents: bfb0456 Author: hahao Authored: Thu Apr 27 13:29:11 2017 -0700 Committer: hahao Committed: Thu Apr 27 13:29:11 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sentry/blob/2199b74f/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java ---------------------------------------------------------------------- diff --git a/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java b/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java index 7e56952..4e736ea 100644 --- a/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java +++ b/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java @@ -120,7 +120,8 @@ public class HMSPathsDumper implements AuthzPathsDumper { for (String authzObj: child.getAuthzObjs()) { Set paths = authzObjToPath.get(authzObj); if (paths == null) { - paths = new HashSet(); + paths = new HashSet<>(); + authzObjToPath.put(authzObj, paths); } paths.add(child); }