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

*: upgrade gRPC v1.7.x with balancer connection drain fix #8831

Closed
wants to merge 6 commits into from

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Nov 7, 2017

gRPC v1.7.x does not pass errConnDrain to balancer,
so blackholed endpoint does not get unpinned until
the connection is closed. So it's possible that
updateNotifyLoop notifies blackholed endpoint twice
before the blackholed endpoint gets unpinned and the
balancer pins a new one.

This keeps track of all gRPC connection Up and down,
to make connection drain and "notifyAddrs" operation
synchronous.

Fix #8828.

Also handle new gRPC "no connection" error in retry.

DEBUGGING:

https://semaphoreci.com/coreos/etcd/branches/pull-request-8831/builds/3

--- FAIL: TestKVPutFailGetRetry (5.26s)
	kv_test.go:754: timed out waiting for get
	kv_test.go:741: grpc: the client connection is closing

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
To handle new grpc error messages in v1.7.x

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
…erClose

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@gyuho gyuho added the WIP label Nov 7, 2017
gRPC v1.7.x does not pass errConnDrain to balancer,
so blackholed endpoint does not get unpinned until
the connection is closed. So it's possible that
updateNotifyLoop notifies blackholed endpoint twice
before the blackholed endpoint gets unpinned and the
balancer pins a new one.

This keeps track of all gRPC connection Up and down,
to make connection drain and "notifyAddrs" operation
synchronous.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

clientv3: fix balancer and upgrade gRPC v1.7.x
1 participant