-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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: grpc-go (v1.27.0) made API changes to balancer / resolver. #11563
Comments
/cc @jpbetz |
版本不兼容,指定grpc的版本为1.26即可解决问题。 |
@nieaowei Yes, but we need to solve the problem fundamentally. |
Did you find any workaround? |
@gun1x You can first downgrade grpc to v1.26.0 to temporarily avoid this problem. |
ok, so the actual fix is adding this to
|
@gun1x can i see your full go.mod for that fix? your suggestion does not fix the issue for me and i'm wondering if i'm missing something. replace github.com/coreos/go-systemd => github.com/coreos/go-systemd/v22 v22.0.0
require (
github.com/coreos/etcd v3.3.18+incompatible // indirect
github.com/go-log/log v0.2.0 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/json-iterator/go v1.1.9 // indirect
github.com/lucas-clemente/quic-go v0.14.3 // indirect
github.com/marten-seemann/qtls v0.7.1 // indirect
github.com/micro/go-micro v1.18.0
github.com/miekg/dns v1.1.27 // indirect
github.com/mostfamiliar/shippy-service-consignment v0.0.0-20200212041600-94c659f72b79
github.com/nats-io/jwt v0.3.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
go.uber.org/atomic v1.5.1 // indirect
go.uber.org/multierr v1.4.0 // indirect
go.uber.org/zap v1.13.0 // indirect
golang.org/x/crypto v0.0.0-20200210222208-86ce3cb69678 // indirect
golang.org/x/lint v0.0.0-20200130185559-910be7a94367 // indirect
golang.org/x/tools v0.0.0-20200211205636-11eff242d136 // indirect
google.golang.org/genproto v0.0.0-20200211111953-2dc5924e3898 // indirect
google.golang.org/grpc v1.27.1
) error:
|
@mostfamiliar Your |
|
Has this problem been solved?I have to use version 1.27.0 or I can't use micro, but I need to use etcd to get service information. |
I have a fix for this issue here: #11580. How do I get a review for it? |
遇到同样的问题. meet the same problem
|
if modified to google.golang.org/grpc v1.26.0... |
@13642212901 The consideration is caused by the high version of protoc. |
I know. I hope etcd-io/etcd support grpc v1.27.*,it,s so easy. |
I meet the same issue. I use the latest version protobuf in https://github.com/protocolbuffers/protobuf/releases and I go get -u github.com/golang/protobuf/protoc-gen-go then if I modified to google.golang.org/grpc v1.26.0 protobuf build pb error undefined: grpc.SupportPackageIsVersion6. if I modified to google.golang.org/grpc v1.27.0 then etcd will report err: |
Workaround:
fix needs to wait for #11564. |
resolve method: |
doesn't seem to work, I get conflicts:
|
i'm use this trick - |
hmmmm, right. Thanks for sharing! I'll be using that one. |
Thanks mate, seems to have worked for me! |
Seems that etcd maintainer did not take serious to fix the issue. I still got this issue, where I do need latest gRPC (1.31+) github.com/coreos/etcd/clientv3/balancer/resolver/endpoint/home/alpha/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:114:78: undefined: resolver.BuildOption github.com/coreos/etcd/clientv3/balancer/picker/home/alpha/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/picker/err.go:37:44: undefined: balancer.PickOptions How I get the latest etcd golang module if there is a fix? |
The fix is in unreleased 3.5 branch: and backported to 3.4: Please try using etcd 3.4 |
Why is this closed? I'm still having this issue and it looks like several others are as well. |
yes, still an issue. Please fix, thanks |
This seems to be the only workaround even in 2021. This needs to be fixed as a lot of packages is dependent on it. Apparently it's a wide known bug |
This solved my issue |
This is working for me. |
This bump is required to add support for grpc.WithNoProxy(). Note that bumping to v1.30.0 or newer causes a build failure in go.etcd.io/etcd/clientv3, described in etcd-io/etcd#11563. It is not possible to bump gRPC further until etcd v3.5 is released, which updates the relevant api uses.
This bump is required to add support for grpc.WithNoProxy(). Note that bumping to v1.30.0 or newer causes a build failure in go.etcd.io/etcd/clientv3, described in etcd-io/etcd#11563. It is not possible to bump gRPC further until etcd v3.5 is released, which updates the relevant api uses. RHBZ: #1944655 (cherry picked from commit 451aaf9)
…ster proxy (#1528) * Bump gRPC to v1.29.0 (#1527) This bump is required to add support for grpc.WithNoProxy(). Note that bumping to v1.30.0 or newer causes a build failure in go.etcd.io/etcd/clientv3, described in etcd-io/etcd#11563. It is not possible to bump gRPC further until etcd v3.5 is released, which updates the relevant api uses. * [manila-csi-plugin] Ignore proxy connecting to CSI sockets (#1527)
This bump is required to add support for grpc.WithNoProxy(). Note that bumping to v1.30.0 or newer causes a build failure in go.etcd.io/etcd/clientv3, described in etcd-io/etcd#11563. It is not possible to bump gRPC further until etcd v3.5 is released, which updates the relevant api uses. RHBZ: #1944655 (cherry picked from commit 451aaf9) (cherry picked from commit 1f3c1b3) Conflicts: go.mod: Context differences go.sum: Regenerated from scratch by go mod vendor Cherry pick also includes go mod vendor
…ster proxy (kubernetes#1528) * Bump gRPC to v1.29.0 (kubernetes#1527) This bump is required to add support for grpc.WithNoProxy(). Note that bumping to v1.30.0 or newer causes a build failure in go.etcd.io/etcd/clientv3, described in etcd-io/etcd#11563. It is not possible to bump gRPC further until etcd v3.5 is released, which updates the relevant api uses. * [manila-csi-plugin] Ignore proxy connecting to CSI sockets (kubernetes#1527)
Can't use this workaround (etcd-io/etcd#11563 (comment)) if valkeyrie mixes go.etcd.io/etcd with github.com/coreos/etcd for some reason.
Can it only be solved by downgrading the grpc version ? #18344 |
Can't use this workaround (etcd-io/etcd#11563 (comment)) if valkeyrie mixes go.etcd.io/etcd with github.com/coreos/etcd for some reason.
After the release of grpc-go v1.27.0, an error occurred while pulling etcd / clientv3. The steps to reproduce it are as follows:
The text was updated successfully, but these errors were encountered: