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 22557200CC4 for ; Thu, 13 Jul 2017 19:03:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 21B8916C5F9; Thu, 13 Jul 2017 17:03:12 +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 689C716C5F7 for ; Thu, 13 Jul 2017 19:03:11 +0200 (CEST) Received: (qmail 48599 invoked by uid 500); 13 Jul 2017 17:03:10 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 48588 invoked by uid 99); 13 Jul 2017 17:03:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2017 17:03:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AEF0BC0632 for ; Thu, 13 Jul 2017 17:03:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NXjiUJYKKwHB for ; Thu, 13 Jul 2017 17:03:01 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8E2E15F2A9 for ; Thu, 13 Jul 2017 17:03:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v6DH2wSh029213; Thu, 13 Jul 2017 17:02:58 GMT Message-Id: <201707131702.v6DH2wSh029213@ip-10-146-233-104.ec2.internal> Date: Thu, 13 Jul 2017 17:02:58 +0000 From: "Bharath Vissapragada (Code Review)" To: anujphadke , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Matthew Jacobs Reply-To: bharathv@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5582=3A_Store_sentry_privileges_in_lower_case=0A?= X-Gerrit-Change-Id: Ide3dfa601fcf77f5acc6adce9bea443aea600901 X-Gerrit-ChangeURL: X-Gerrit-Commit: 9a50eceff44f6299b5ec9eda26f2f2924ac5dc60 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Thu, 13 Jul 2017 17:03:12 -0000 Bharath Vissapragada has posted comments on this change. Change subject: IMPALA-5582: Store sentry privileges in lower case ...................................................................... Patch Set 3: (9 comments) Few more in addition to MJ's comments. http://gerrit.cloudera.org:8080/#/c/7332/3//COMMIT_MSG Commit Message: PS3, Line 16: If the catalogObjectCache on a update adds the new : rolePrivilege object first and removes the old object later qq, Isn't this order always the same? http://gerrit.cloudera.org:8080/#/c/7332/3/be/src/catalog/catalog.cc File be/src/catalog/catalog.cc: PS3, Line 41: DEFINE_int64 int32 should be fine. PS3, Line 41: sentry_catalog_polling_frequency how about sentry_catalog_polling_frequency_s ? (indicates seconds) http://gerrit.cloudera.org:8080/#/c/7332/3/fe/src/main/java/org/apache/impala/catalog/AuthorizationPolicy.java File fe/src/main/java/org/apache/impala/catalog/AuthorizationPolicy.java: PS3, Line 336: Fix GRANTs on URIs with uppercase letters s/ URIs are case sensitive ? http://gerrit.cloudera.org:8080/#/c/7332/3/fe/src/main/java/org/apache/impala/catalog/RolePrivilege.java File fe/src/main/java/org/apache/impala/catalog/RolePrivilege.java: Line 75: toLowerCase())); nit: 4 space formatting everywhere http://gerrit.cloudera.org:8080/#/c/7332/3/tests/authorization/test_grant_revoke.py File tests/authorization/test_grant_revoke.py: PS3, Line 130: statestored_args=("--statestore_heartbeat_frequency_ms=300 " : "--statestore_update_frequency_ms=300")) Is this required? PS3, Line 143: grant_rev_db Looks like a common db name used in authz tests. Could you randomize it? Else we might hit flaky tests if this DB already exists from test_grant_revoke for ex. Line 149: self.client.execute("grant select on table test1 to test_role") Could you also add some grants on camel case DB names? PS3, Line 165: self.client.execute("drop role test_role") How about adding it to a finally block incase the test fails, also clean up the dbs created? -- To view, visit http://gerrit.cloudera.org:8080/7332 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ide3dfa601fcf77f5acc6adce9bea443aea600901 Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: anujphadke Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: anujphadke Gerrit-HasComments: Yes