impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anujphadke (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5582: Store sentry privileges in lower case
Date Mon, 17 Jul 2017 20:27:15 GMT
anujphadke has uploaded a new patch set (#4).

Change subject: IMPALA-5582: Store sentry privileges in lower case

IMPALA-5582: Store sentry privileges in lower case

Privileges granted to a db/table whose name contains upper case
characters can disappear after a few seconds. A privilege
is inserted into the catalogObjectCache using a key that
uses the db/table name. The key gets converted to a lower case
before inserting.
Privilege name returned by sentryProxy is always lower case,
which might not match the privilegeName built in the catalog.
This triggers an update of the catalog object followed by a
removal of the old object. Since they both use the same key
in lower case it ends up deleting the newly updated object.

This change also adds a new catalogd startup option
to configure the frequency at which catalogd polls the sentry service
to update any policy changes. The default value is 60 seconds.

Added a test which adds select privileges to 3 tables and dbs specified
in lower case, upper case and mixed case. The test verifies that the
privileges on the 3 tables do not disappear on a sentry update.

Change-Id: Ide3dfa601fcf77f5acc6adce9bea443aea600901
M be/src/catalog/
M be/src/util/
M common/thrift/BackendGflags.thrift
M fe/src/main/java/org/apache/impala/catalog/
M fe/src/main/java/org/apache/impala/catalog/
M fe/src/main/java/org/apache/impala/service/
M fe/src/main/java/org/apache/impala/util/
M testdata/workloads/functional-query/queries/QueryTest/grant_revoke.test
M tests/authorization/
9 files changed, 145 insertions(+), 71 deletions(-)

  git pull ssh:// refs/changes/32/7332/4
To view, visit
To unsubscribe, visit

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ide3dfa601fcf77f5acc6adce9bea443aea600901
Gerrit-PatchSet: 4
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: anujphadke <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Matthew Jacobs <>
Gerrit-Reviewer: Michael Brown <>
Gerrit-Reviewer: anujphadke <>

View raw message