Adam Holley has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/11314 )

Change subject: IMPALA-7074: Update OWNER privilege on CREATE, DROP, and SET 
OWNER
......................................................................


Patch Set 30:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/11314/30/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
File fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java:

http://gerrit.cloudera.org:8080/#/c/11314/30/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java@1013
PS30, Line 1013:    * the absence, will function correctly without waiting for 
the next refresh.
> How do you deal with the case when the next refresh modifies the privileges
Privileges that are created, should only be created if enabled in Sentry.  So a 
refresh should not change the state except on a failure in Sentry.


http://gerrit.cloudera.org:8080/#/c/11314/30/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java@1023
PS30, Line 1023:    * the privilege, it will be removed on the next refresh. 
ALTER DATABASE SET OWNER
> I don't think that it will help much in case Sentry is delayed.
My understanding is that the HMS calls will not return until the Sentry calls 
are made.


http://gerrit.cloudera.org:8080/#/c/11314/30/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java@1338
PS30, Line 1338:     updateDatabasePrivileges(db.getName(), /* tableName */ 
null, params.server_name,
> Do we need to do this for CreateFunction?
No because functions do not have privileges.



--
To view, visit http://gerrit.cloudera.org:8080/11314
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e09332e007ed5aa6a0840683c879a8295c3d2b0
Gerrit-Change-Number: 11314
Gerrit-PatchSet: 30
Gerrit-Owner: Adam Holley <[email protected]>
Gerrit-Reviewer: Adam Holley <[email protected]>
Gerrit-Reviewer: Anonymous Coward #424
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Fredy Wijaya <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Vuk Ercegovac <[email protected]>
Gerrit-Comment-Date: Mon, 10 Sep 2018 21:23:10 +0000
Gerrit-HasComments: Yes

Reply via email to