-
Notifications
You must be signed in to change notification settings - Fork 310
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
Retry requests.exceptions.ConnectionError #1929
Comments
Looks like we already retry this at at the API request level here: https://github.com/googleapis/python-bigquery/blob/main/google/cloud/bigquery/retry.py#L32 It looks like the failure you're seeing is at the "retry the query" layer, which we need to be much more careful about. If your query is not idempotent (e.g. some DML & DDL queries), we don't want to retry without knowing the job has failed. I would encourage updating to the latest version, as I made sure more of the API requests in the "wait for the query to finish" code path use our API-level retries in #1900. |
Hi @tswast the query is idempotent how to force it to retry? |
I would recommend passing in a custom value for the See:
That said, I'm not sure why the call to jobs.getQueryResults isn't being retried here. I'll do some more investigation. |
I think I'm able to reproduce this at HEAD with the following test:
It never gets to the final |
Fix awaiting review: #1930 |
@tswast Thank you again for your quick response and resolution to the issue :) |
Hi Team,
Could you add a retry to this exception? We are running this code in Cloud Function and GKE infrastructure from time to time we get these errors
Bigquery SDK == google-cloud-bigquery==3.18.0
The text was updated successfully, but these errors were encountered: