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

clientv3 can't be compiled with latest gRPC change #5561

Closed
gyuho opened this issue Jun 4, 2016 · 4 comments
Closed

clientv3 can't be compiled with latest gRPC change #5561

gyuho opened this issue Jun 4, 2016 · 4 comments
Milestone

Comments

@gyuho
Copy link
Contributor

gyuho commented Jun 4, 2016

# github.com/coreos/dbtester/vendor/github.com/coreos/etcd/clientv3

vendor/github.com/coreos/etcd/clientv3/client.go:309: oldconn.State undefined (type *grpc.ClientConn has no field or method State)
vendor/github.com/coreos/etcd/clientv3/client.go:311: oldconn.WaitForStateChange undefined (type *grpc.ClientConn has no field or method WaitForStateChange)

Currently we don't force users to use our gRPC dependencies, so this will happen.

I am creating this issue so we don't forget.

@heyitsanthony
Copy link
Contributor

For the sake of completeness, I'll note the reason the code does that is so grpc won't queue the Close and keep some reconnection goroutine running (making the leak detector complain). Hopefully removing it won't cause any headaches...

@mkumatag
Copy link
Contributor

mkumatag commented Jun 6, 2016

I've also faced this issue while getting v3client

[root@jupiter-vm1164 src]# go get github.com/coreos/etcd/clientv3
# github.com/coreos/etcd/clientv3
github.com/coreos/etcd/clientv3/client.go:309: oldconn.State undefined (type *grpc.ClientConn has no field or method State)
github.com/coreos/etcd/clientv3/client.go:311: oldconn.WaitForStateChange undefined (type *grpc.ClientConn has no field or method WaitForStateChange)
[root@jupiter-vm1164 src]# 

Do we have any workaround for this?

@mkumatag
Copy link
Contributor

mkumatag commented Jun 6, 2016

part of commit - grpc/grpc-go@9c2d854#diff-e1550a73f5d25064c8b586ec68d81a64 they have created new structure called addrConn and moved State to getState and WaitForStateChange to waitForStateChange. So we might need to change the logic in the client file.

@xiang90 xiang90 added this to the v3.0.0 milestone Jun 6, 2016
@heyitsanthony heyitsanthony self-assigned this Jun 6, 2016
@heyitsanthony
Copy link
Contributor

Fixed by #5583

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

No branches or pull requests

4 participants