-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Should v1 balancer handle TCP connections to old endpoint? #1831
Comments
I'm not sure I fully understand your question. You should always close all Each |
@menghanl We implement our custom My question is whether the connection We are asking because v1 balancer endpoint switch does not seem to close the previous connection (etcd-io/etcd#9212) for our use case. We never close Thanks. |
If an address was returned by a previous Do you have pending RPCs on the old connection that you are trying to close? The connection will be kept open until all RPCs finish. |
Makes sense.
We will double-check on etcd side, and get back to you shortly. Thanks! |
Hi @gyuho, have you had a chance to look into this yet? Thanks! |
@dfawley Was busy with new etcd release with gRPC v1.7.5. So, we will double-check on this with new balancer implementation (next 2~3 months). Thanks! |
What version of gRPC are you using?
v1.7.5
What version of Go are you using (
go version
)?1.9.2
What operating system (Linux, Windows, …) and version?
Linux
What did you do?
etcd-io/etcd#9212
What did you expect to see?
Clean TCP shutdown on endpoint switch.
What did you see instead?
New TCP session.
We are using v1
grpc.WithBalancer
(planned to upgrade to new balancer grpc/proposal#30).Does v1 balancer expect users to manually close old
*grpc.ClientConn
when disconnected? We get notified on disconnects viafunc(error)
(that is returned fromUp
function).The text was updated successfully, but these errors were encountered: