Hao Hao has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/11797 )

Change subject: [sentry] Integrate AuthzProvider into CatalogManager
......................................................................


Patch Set 12:

(6 comments)

http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/cluster_itest_util.h
File src/kudu/integration-tests/cluster_itest_util.h:

http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/cluster_itest_util.h@352
PS12, Line 352:                          boost::optional<const std::string&> 
table_id);
> 'table_locations' is the only OUT parameter so it should come last in the l
I will keep table_locations' as the last arg, and _not_ give a default value to 
'table_id' then.


http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/cluster_itest_util.cc
File src/kudu/integration-tests/cluster_itest_util.cc:

http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/cluster_itest_util.cc@928
PS12, Line 928:   req.mutable_table()->set_table_name(table_name);
              :   if (table_id) {
              :     req.mutable_table()->set_table_id(*table_id);
              :   }
> Should we enforce that you should only set one of these? Or should we allow
For current test usage (in MasterSentryTest::TestMismatchedTable), we need to 
allow for both to be set. If in future, there is a case that requires only 
setting one of table ID or table name, we can update the method to accommodate 
that.


http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/hms_itest-base.h
File src/kudu/integration-tests/hms_itest-base.h:

http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/hms_itest-base.h@54
PS12, Line 54: verifies
> verifies that
Done


http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/hms_itest-base.h@55
PS12, Line 55:   // against the logged in user.
> Missing a closing parens here.
Done


http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/master_sentry-itest.cc
File src/kudu/integration-tests/master_sentry-itest.cc:

http://gerrit.cloudera.org:8080/#/c/11797/12/src/kudu/integration-tests/master_sentry-itest.cc@109
PS12, Line 109:  Status GetTableLocationsCore(const string& table,
> Nit: 'Core' is an unusual suffix here. How about 'WithTableId' or something
Done


http://gerrit.cloudera.org:8080/#/c/11797/11/src/kudu/master/catalog_manager.cc
File src/kudu/master/catalog_manager.cc:

http://gerrit.cloudera.org:8080/#/c/11797/11/src/kudu/master/catalog_manager.cc@1781
PS11, Line 1781:   string table_name = table_identifier.has_table_name() ?
               :       NormalizeTableName(table_identifier.table_name()) : "";
> Yeah I agree that it won't be optional by the time we hit L1834, but it _is
Right, because this inconsistent usage, I decide to move the 'table_name' 
declaration to L1834. And instead use table name in table identifier before 
that.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iab4aa027ae6eb4520db48ce348db552c9feec2a8
Gerrit-Change-Number: 11797
Gerrit-PatchSet: 12
Gerrit-Owner: Hao Hao <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Dan Burkert <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 21 Mar 2019 21:04:22 +0000
Gerrit-HasComments: Yes

Reply via email to