Skip to content

Conversation

@dapengzhang0
Copy link
Contributor

@dapengzhang0 dapengzhang0 commented Jun 3, 2019

During migration, the name resolver may not know when the client has been upgraded to xds, so it may still send grpclb v1 addresses with a list of policies including both grpclb v1 and xds.

@dapengzhang0 dapengzhang0 requested a review from zhangkun83 June 3, 2019 18:09
@zhangkun83
Copy link
Contributor

This work is done in the XdsLoadBalancer -- doesn't it require client to be upgraded to xDS in the first place?

LbConfig fallbackPolicy) {
this.fallbackServers = servers;
String fallbackPolicyName = fallbackPolicy.getPolicyName();
if (!fallbackPolicyName.equals("grpclb") && !fallbackPolicyName.equals(XDS_POLICY_NAME)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth a comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor Author

@dapengzhang0 dapengzhang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

servers = backends.build();
}

// FIXME: this is a temporary hack.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add TODO(zhangkun83) and refer to #5496

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

}
}

private void handleFallbackAddressesOrNameResolutionError() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the method name contain "NameResolutionError"? It's only called from fallback-related methods. What this method does is passing the latest fallback addresses to the fallback balancer. The handling of empty addresses is just part of it. Maybe "propagateFallbackAddresses()".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed

@dapengzhang0 dapengzhang0 merged commit 33c30db into grpc:master Jun 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 8, 2019
@dapengzhang0 dapengzhang0 deleted the xds-v1 branch January 16, 2022 18:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants