Attila Bukor has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10300 )

Change subject: [tools] ksck imp. [8/n]: Easy-to-see errors when running w/o 
admin
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/10300/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/10300/2//COMMIT_MSG@13
PS2, Line 13: to run as an administrative user.
can you add an example error message in the commit message?


http://gerrit.cloudera.org:8080/#/c/10300/2/src/kudu/tools/ksck.cc
File src/kudu/tools/ksck.cc:

http://gerrit.cloudera.org:8080/#/c/10300/2/src/kudu/tools/ksck.cc@147
PS2, Line 147:          s.ToString().find("Not authorized: unauthorized access 
to method") != string::npos;
it feels weird to string match the error message, could we maybe return EPERM 
or EACCES on the server side with the RemoteError and check on that instead? 
That would mean a newer ksck wouldn't be able to detect not authorized errors 
when accessing older servers, but would mean better forward compatibility.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I644957103efefceeba4b82f4557376a603507423
Gerrit-Change-Number: 10300
Gerrit-PatchSet: 2
Gerrit-Owner: Will Berkeley <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Attila Bukor <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Will Berkeley <[email protected]>
Gerrit-Comment-Date: Fri, 25 May 2018 16:04:51 +0000
Gerrit-HasComments: Yes

Reply via email to