Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

engine: fix a bug in engine being unreachable #1713

Merged
merged 1 commit into from
Dec 2, 2016

Conversation

dongsupark
Copy link
Contributor

When gRPC is turned on, TestScheduleMachineOf fails sometimes, as the engine becomes unreachable with the following error messages:

transport: http2Client. notifyError got notified that the client transport was broken EOF.
ERROR registrymux.go:166: Retry to connect to new engine: dial tcp 172.18.1.1:50059: getsockopt: connection refused
ERROR registrymux.go:166: Retry to connect to new engine: dial tcp 172.18.1.1:50059: getsockopt: connection refused
ERROR registrymux.go:166: Retry to connect to new engine: dial tcp 172.18.1.1:50059: getsockopt: connection refused

This must have been a regression from commit ecb121a ("registry/rpc: use simpleBalancer instead of ClientConn.State()"). Remove the additional checking with IsRegistryReady, in order to avoid the occasional case of engine being unreachable.

Fixes #1712

When gRPC turned on, TestScheduleMachineOf fails sometimes, as the
engine becomes unreachable with the following error messages:

====
transport: http2Client. notifyError got notified that the client transport was broken EOF.
ERROR registrymux.go:166: Retry to connect to new engine: dial tcp 172.18.1.1:50059: getsockopt: connection refused
ERROR registrymux.go:166: Retry to connect to new engine: dial tcp 172.18.1.1:50059: getsockopt: connection refused
ERROR registrymux.go:166: Retry to connect to new engine: dial tcp 172.18.1.1:50059: getsockopt: connection refused
====

This must have been a regression from commit ecb121a ("registry/rpc: use
simpleBalancer instead of ClientConn.State()"). Remove the additional
checking with IsRegistryReady, in order to avoid the occasional case of
engine being unreachable.

Fixes coreos#1712
@dongsupark
Copy link
Contributor Author

Yep, it seems to really help. I'll merge.

@dongsupark dongsupark merged commit 9e421a4 into coreos:master Dec 2, 2016
@dongsupark dongsupark deleted the dongsu/engine-fix-grpc-conn branch December 5, 2016 10:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant