[grpclb] set resolution note for empty list from balancer (#34487)

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
pull/34503/head
Yousuk Seung 1 year ago committed by GitHub
parent 69f625c27c
commit 153824a21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc

@ -1767,6 +1767,9 @@ void GrpcLb::CreateOrUpdateChildPolicyLocked() {
update_args.addresses = serverlist_->GetServerAddressList(
lb_calld_ == nullptr ? nullptr : lb_calld_->client_stats());
is_backend_from_grpclb_load_balancer = true;
if (update_args.addresses.ok() && update_args.addresses->empty()) {
update_args.resolution_note = "empty serverlist from grpclb balancer";
}
}
update_args.args =
CreateChildPolicyArgsLocked(is_backend_from_grpclb_load_balancer);

Loading…
Cancel
Save