-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
spanner: Deadlock in Spanner client library #7496
Comments
@osterante Thanks for raising the request, do you have test case handy for replicating the deadlock? #6344 was merged in v1.35.0 so to replicate should I use the same version? |
@rahul2393 Sorry, I don't have minimal code to reproduce it and I can't provide our production codes.
google-cloud-go/spanner/session.go Lines 322 to 328 in f55bfe0
|
@osterante Can you please check if the patch solves the deadlock at your end? add the line in your go.mod file to verify
|
@rahul2393 Seems fixed 👍 |
Client
Spanner v1.44.0
Environment
The local environment on M1 MacBookPro
Go Environment
$ go version
go version go1.20 darwin/arm64
$ go env
We found a deadlock in the Spanner library on our e2e test.
Seems to try to acquire multiple locks at https://github.com/googleapis/google-cloud-go/blob/main/spanner/session.go#L322 and https://github.com/googleapis/google-cloud-go/blob/main/spanner/session.go#L961.
The stack trace is following:
Additional context
It happens after #6344 is merged.
The text was updated successfully, but these errors were encountered: