Adar Dembo has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/11449 )

Change subject: KUDU-2580 [c++ client] authn token reacquisition fix
......................................................................


Patch Set 2:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/11449/2/src/kudu/client/client-internal.h
File src/kudu/client/client-internal.h:

http://gerrit.cloudera.org:8080/#/c/11449/2/src/kudu/client/client-internal.h@191
PS2, Line 191:   // A dedicated enumeration for the third parameter of the 
ReconnectToCluster()
             :   // method below.
             :   enum class ReconnectionReason {
             :     INVALID_AUTHN_TOKEN,
             :     OTHER,
             :   };
Nit: The following formatting would suffice:

  // Comment about ReconnectToCluster, incorporating information
  // about ReconnectionReason if necessary.
  enum class ReconnectionReason { ... }
  void ReconnectToCluster(...);

  std::shared_ptr<master::MasterServiceProxy> master_proxy() const;
  ...


http://gerrit.cloudera.org:8080/#/c/11449/2/src/kudu/client/client-internal.h@203
PS2, Line 203: Log any failures with LOG(WARNING) with a limit of 1 log
             :   // message per second.
This detail can be elided.


http://gerrit.cloudera.org:8080/#/c/11449/1/src/kudu/client/client-internal.cc
File src/kudu/client/client-internal.cc:

http://gerrit.cloudera.org:8080/#/c/11449/1/src/kudu/client/client-internal.cc@270
PS1, Line 270:       if (resp->error().code() == MasterErrorPB::NOT_THE_LEADER 
||
> The original approach of authn token re-acquisition is to go get reacquire
Oh, I thought the aliased error issue was manifesting on the other masters, not 
the former leader master. That is, the masters that the client must reconnect 
to.


http://gerrit.cloudera.org:8080/#/c/11449/1/src/kudu/client/client-internal.cc@659
PS1, Line 659: urity::Cert cert;
> Will and I discussed this offline and it seems having this as-is for the pu
If the goal is to produce an easily backportable patch, I'd recommend dropping 
the other minor cleanup too (i.e. movement of RpcController variable 
declaration, etc.)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4477d0f2bb36ee5ef580b585cae189a634d5002f
Gerrit-Change-Number: 11449
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Will Berkeley <[email protected]>
Gerrit-Comment-Date: Wed, 19 Sep 2018 16:22:57 +0000
Gerrit-HasComments: Yes

Reply via email to