xds: reset xDS stream backoff even if all resources are invalid (#29094)

pull/29106/head
Mark D. Roth 3 years ago committed by GitHub
parent ff14d1d7f3
commit 7147e7bf53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/xds/xds_client.cc

@ -1204,6 +1204,7 @@ bool XdsClient::ChannelState::AdsCallState::OnResponseReceivedLocked() {
xds_client(), chand()->server_.server_uri.c_str(),
status.ToString().c_str());
} else {
seen_response_ = true;
AdsResponseParser::Result result = parser.TakeResult();
// Update nonce.
auto& state = state_map_[result.type];
@ -1259,7 +1260,6 @@ bool XdsClient::ChannelState::AdsCallState::OnResponseReceivedLocked() {
}
// If we had valid resources, update the version.
if (result.have_valid_resources) {
seen_response_ = true;
chand()->resource_type_version_map_[result.type] =
std::move(result.version);
// Start load reporting if needed.

Loading…
Cancel
Save