Skip to content

fix(bigquery): add jobRateLimitExceeded in jobRetryReasons - #9726

Merged
shollyman merged 3 commits into
googleapis:mainfrom
atzoum:bigquery.jobRateLimitExceeded
Apr 11, 2024
Merged

shollyman merged 3 commits into
googleapis:mainfrom
atzoum:bigquery.jobRateLimitExceeded

Conversation

@atzoum

@atzoum atzoum commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

jobRateLimitExceeded should be added in jobRetryReasons so that these errors are automatically retried by the client.
Other bigquery libraries, such as python-bigquery do so already.

@atzoum
atzoum requested review from a team and chalmerlowe April 8, 2024 09:45
@google-cla

google-cla Bot commented Apr 8, 2024

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@atzoum
atzoum force-pushed the bigquery.jobRateLimitExceeded branch from b2e704d to 480752b Compare April 9, 2024 06:30
@alvarowolfx alvarowolfx changed the title chore(bigquery): add jobRateLimitExceeded in jobRetryReasons fix(bigquery): add jobRateLimitExceeded in jobRetryReasons Apr 11, 2024
@alvarowolfx
alvarowolfx requested review from shollyman and removed request for chalmerlowe April 11, 2024 19:19

@alvarowolfx alvarowolfx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add tests for this retry reason here ? Other than that, looks good to me

func TestRetryableErrors(t *testing.T) {

@shollyman shollyman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.

Your PR has reminded me that we don't properly exercise job retry behaviors in the existing unit tests, so I've opened 9751 against myself to add more testing surface.

@shollyman shollyman added the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 11, 2024
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants