-
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
Deadlock clientconn.getTransport #1605
Comments
Hey can you share more information to help us reproduce it.
Please feel free to share any other relevant information that you think might help us dig deeper. It'd be great if you can share some code? A small reproduction code will be even better. |
Hey MakMukhi,
As I mentioned, we saw this issue while attempting to use the Google Cloud Datastore client libraries. Reverting the last few commits from grpc-go seems to have fixed the issue for us. The smallest possible repro is at: https://gist.github.com/dhavalcue/8fc6aba28aad59603fc01351a3dca6d6 The backtrace where it deadlocks is at: |
This could be caused by the switching of default resolver. Can you try #1606 and see if that fixes the problem? |
EDIT: Sorry, nevermind that question - I see this is for debugging and there is a different path in another package that calls grpc.Dial if it's not set. |
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.7.0
What version of Go are you using (
go version
)?1.9.1
What operating system (Linux, Windows, …) and version?
Mac
What did you do?
We noticed this issue when the Google Cloud Datastore library started deadlocking when making Get requests. Digging deeper it seems to be blocking at: https://github.com/grpc/grpc-go/blob/master/clientconn.go#L800
We saw this issue first around 12:15PM PST on October 19.
Rolling back gRPC to an older version seems to have fixed this.
What did you expect to see?
Do not deadlock.
What did you see instead?
Deadlock.
The text was updated successfully, but these errors were encountered: