-
Notifications
You must be signed in to change notification settings - Fork 38
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
all: do not hide original error code #235
Comments
This is raised as a bigquery issue, but I think that it is likely an issue in all of our gapics. We just fixed a similarish issue recently on the apiary space: googleapis/google-api-go-client#1684 I wonder if we should be doing something similar for our gapic clients. cc @noahdietz |
My read on the issue is that the RPC response was a status code configured for retries, That is how I see this being able to happen. We likely need to do wrapping similar to the stuff @codyoss mentioned but in |
I am going to transfer this issue over to gax-go, seems like a reasonable request to me. |
I have dug into this deeper and I think for now we should put this on hold. Although it would be for the better of all, we can't make this change as a non-breaking change, and this is considered a stable library. The good news is that in a few months there will be a way to add a cause to deadline exceeded errors and I think we can provide more details that way without breaking anyone. This is a parallel feature to https://pkg.go.dev/context#WithCancelCause added in 1.20. Once 1.21 comes out we can considered adding this functionality with build tags. Relevant prop: golang/go#56661 |
Is your feature request related to a problem? Please describe.
this code hides original error message into
context deadline exceeded
cloud.google.com/go/bigquery/storage/apiv1/big_query_write_client.go:396
Describe the solution you'd like
it's better to return last error instead so we can know what's the cause of the context deadline exceeded
Describe alternatives you've considered
i don't see any other alternative
Additional context
annoying to trace to know what's the cause of context deadline exceded when the original error hidden.
The text was updated successfully, but these errors were encountered: