Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: do not fail RPCs if balancer address exists but grpclb is unavailable #5129

Merged
merged 2 commits into from Dec 6, 2018

Conversation

zhangkun83
Copy link
Contributor

When service owner turns on grpclb through service config, it
shouldn't break existing clients that don't have grpclb in their
classpath.

Resolves #4602

…ilable.

When service owner turns on grpclb through service config, it
shouldn't break existing clients that don't have grpclb in their
classpath.

Resolves grpc#4602
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

One removal, otherwise LGTM

String policy = entry.getKey();
if (policy.equals(GRPCLB_POLICY)) {
throw new PolicyException(
GRPCLB_POLICY + " specified by Service Config but no balancer addresses exist");
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it should exist in gRPC LB instead. And it seems like something like that is already in GrpclbState.

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.

@zhangkun83 zhangkun83 merged commit 0cc0f2d into grpc:master Dec 6, 2018
@zhangkun83 zhangkun83 deleted the grpclb_missing branch December 6, 2018 21:40
@lock lock bot locked as resolved and limited conversation to collaborators Mar 6, 2019
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.

None yet

2 participants