Dinesh Bhat has posted comments on this change.

Change subject: KUDU-921. tablet copy: Make the StartTabletCopy() RPC async
......................................................................


Patch Set 6: Code-Review+1

(3 comments)

http://gerrit.cloudera.org:8080/#/c/5045/6/src/kudu/integration-tests/tablet_copy-itest.cc
File src/kudu/integration-tests/tablet_copy-itest.cc:

PS6, Line 949: StartTabletCopy
I wonder if multithreading this and running in parallel will make the 
probability of making num_service_unavailable > 0 high.


http://gerrit.cloudera.org:8080/#/c/5045/6/src/kudu/tserver/ts_tablet_manager.cc
File src/kudu/tserver/ts_tablet_manager.cc:

Line 412: #define CALLBACK_AND_RETURN(status) \
Do we want to include error_code as a macro argument ? Otherwise, IMHO it's bit 
confusing to restrict the caller to have the variable named 'error_code' from 
each callsite and could be bug-prone too.


PS6, Line 529: cb(Status::OK(), TabletServerErrorPB::UNKNOWN_ERROR)
Could we introduce a TabletServerErrorPB::OK to go along with such calls ? This 
being the success case, does this expect the caller to ignore the error_code ?


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I95c63f2bfd67624844447862efbdba9cb3676112
Gerrit-PatchSet: 6
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mpe...@apache.org>
Gerrit-Reviewer: Adar Dembo <a...@cloudera.com>
Gerrit-Reviewer: Dinesh Bhat <din...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mpe...@apache.org>
Gerrit-Reviewer: Tidy Bot
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>
Gerrit-HasComments: Yes

Reply via email to