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

LoadBalancer.requestConnection() may be ignored if it's called before subchannels are created #7435

Open
zhangkun83 opened this issue Sep 16, 2020 · 0 comments
Milestone

Comments

@zhangkun83
Copy link
Contributor

What version of gRPC-Java are you using?

v1.32.1

What did you expect to see?

Calling ManagedChannel.getState(true) will make the channel to try to connect to the server at least once, no matter when it's called.

What did you see instead?

Calling ManagedChannel.getState(true) makes the channel try to connect to server only if it's called after subchannels are created, i.e., after name resolution in pick-first, and after backend addresses are received in grpclb. If getState(true) is called before that point, the channel won't try to connect to servers after subchannels are created, unless getState(true) is called again.

/cc @ejona86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants