jamesge commented on a change in pull request #694: Health check by rpc call
URL: https://github.com/apache/incubator-brpc/pull/694#discussion_r268953517
 
 

 ##########
 File path: src/brpc/policy/dynpart_load_balancer.cpp
 ##########
 @@ -122,7 +122,8 @@ int DynPartLoadBalancer::SelectServer(const SelectIn& in, 
SelectOut* out) {
         for (size_t i = 0; i < n; ++i) {
             const SocketId id = s->server_list[i].id;
             if ((!exclusion || !ExcludedServers::IsExcluded(in.excluded, id))
-                && Socket::Address(id, &ptrs[nptr].first) == 0) {
+                && Socket::Address(id, &ptrs[nptr].first) == 0
+                && !(*out->ptr)->IsAppHealthCheck()) {
 
 Review comment:
   看清楚上下文。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to