Mike Percy has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/11251 )

Change subject: KUDU-2245 Graceful leadership transfer
......................................................................


Patch Set 14:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/11251/13/src/kudu/consensus/consensus_peers.cc
File src/kudu/consensus/consensus_peers.cc:

http://gerrit.cloudera.org:8080/#/c/11251/13/src/kudu/consensus/consensus_peers.cc@501
PS13, Line 501:   
controller->set_timeout(MonoDelta::FromMilliseconds(FLAGS_consensus_rpc_timeout_ms));
              :   consensus_proxy_->RunLeaderElection(*request, response, 
controller);
              : }
> Yes it's meant to be sync. The result of the call is handled by the caller,
How about:

  Status RpcPeerProxy::StartElection(const RunLeaderElectionRequestPB* request,
                                     RunLeaderElectionResponsePB* response,
                                     rpc::RpcController* controller) {
    
controller->set_timeout(MonoDelta::FromMilliseconds(FLAGS_consensus_rpc_timeout_ms));
    return consensus_proxy_->RunLeaderElection(*request, response, controller);
  }

And while you're at it, mind renaming StartTabletCopy to StartTabletCopyAsync?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic97343af9eb349556424c999799ed5e2941f0083
Gerrit-Change-Number: 11251
Gerrit-PatchSet: 14
Gerrit-Owner: Will Berkeley <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Fengling Wang <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <[email protected]>
Gerrit-Reviewer: Tidy Bot
Gerrit-Reviewer: Will Berkeley <[email protected]>
Gerrit-Comment-Date: Mon, 15 Oct 2018 21:16:54 +0000
Gerrit-HasComments: Yes

Reply via email to