xds resolver: fix cases where we weren't returning channel args on error (#29109)

pull/29114/head
Mark D. Roth 3 years ago committed by GitHub
parent 0ea1eeb4e7
commit 34c75a2f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc

@ -712,6 +712,7 @@ void XdsResolver::StartLocked() {
Result result;
result.service_config = absl::UnavailableError(
absl::StrCat("Failed to create XdsClient: ", error_message));
result.args = grpc_channel_args_copy(args_);
result_handler_->ReportResult(std::move(result));
GRPC_ERROR_UNREF(error);
return;
@ -726,6 +727,7 @@ void XdsResolver::StartLocked() {
result.service_config = absl::UnavailableError(
absl::StrCat("Invalid target URI -- authority not found for %s.",
uri_.authority().c_str()));
result.args = grpc_channel_args_copy(args_);
result_handler_->ReportResult(std::move(result));
return;
}

Loading…
Cancel
Save