Andrew Wong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/11754 )

Change subject: authz: verify tokens on writes
......................................................................


Patch Set 7:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/11754/6/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:

http://gerrit.cloudera.org:8080/#/c/11754/6/src/kudu/tserver/tablet_server_authorization-test.cc@485
PS6, Line 485: CHECK_GT
> nit: why not to be able to return up to the all the list, randomized?
If a user wanted to set min_to_return to full_list.size(), they should just use 
full_list and not call this function.
Depending on num_to_return may end up returning the full list anyway.


http://gerrit.cloudera.org:8080/#/c/11754/6/src/kudu/tserver/tablet_server_authorization-test.cc@1110
PS6, Line 1110:   static vector<RowOperationsPB::Type> write_op_types = {
> nit: add const?  Otherwise it looks like every call is supposed to modify w
Done


http://gerrit.cloudera.org:8080/#/c/11754/6/src/kudu/tserver/tablet_server_authorization-test.cc@1124
PS6, Line 1124:   static vector<WritePrivilegeType> write_privilege_types {
> nit: ditto
Done


http://gerrit.cloudera.org:8080/#/c/11754/6/src/kudu/tserver/tablet_server_authorization-test.cc@1231
PS6, Line 1231:         .op_type = RowOperationsPB::INSERT,
              :         .key = 0,
              :         .val = 0,
> I don't think we want to use C99 extensions in our code.  Maybe, just list
Done



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iefa2215d528a64f525e04bec111b25f8bc17c086
Gerrit-Change-Number: 11754
Gerrit-PatchSet: 7
Gerrit-Owner: Andrew Wong <[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: Wed, 27 Mar 2019 22:18:43 +0000
Gerrit-HasComments: Yes

Reply via email to