-
Notifications
You must be signed in to change notification settings - Fork 120
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
Bigquery: it should retry on BigQueryException: 403 Forbidden Exceeded rate limits #2372
Comments
From my investigation, Adding 403 to retry-able errors in The current code pattern is retry on Server Error Responses, we don't have any that does for Client Error Responses that do retry which makes me lean towards doing this at application layer vs at the exception handler. Requested add: [403: Forbidden] Current: Please feel free to reopen if you disagree or have more to say about this issue. |
@takayahilton thanks for the analysis and the info only want to note that:
java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java Lines 242 to 247 in 24aac14
In fact the pr i linked above added support for retries on 400 http code using a regex based approach to narrow appropiate errors related with quotas. Thanks for your time, i am gonna reopen if you dont mind EDIT: sorry but i dont see the button to reopen the issue, it seems issue author does not have permission to do it |
Environment details
Steps to reproduce
This have been tested mocking the server with wiremock and returning exactly that response, verifying the trace produced matched the production environment one
Code example
Stack trace
Any additional information below
I think the cause is the exception handling used in retry logic:
java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryBaseService.java
Lines 29 to 35 in f4e5fc5
Afaiu that code makes abort retries in front of a
RuntimeException
andBigQueryException
is so.EDIT: Just i have observed the interceptor above could make BigqueryException retryable but 403 code is not in the list of retryable errors:
java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryException.java
Lines 39 to 41 in f4e5fc5
I can see two alternatives if you think this should be fixed and the diagnostic is correct:
#1498 asked to retry on a similiar error and was fixed but the return code was 400 in that case (instead 403)
Many thanks in advance
The text was updated successfully, but these errors were encountered: