Skip to content

Conversation

@prash-mi
Copy link
Contributor

Updated BigQueryRetryAlgorithm so that it can retry on error messaged like:

{ "code" : 400, "errors" : [ { "domain" : "global", "message" : "Job exceeded rate limits: Your table exceeded quota for table update operations. For more information, see https://cloud.google.com/bigquery/docs/troubleshoot-quotas", "reason" : "jobRateLimitExceeded" } ], "message" : "Job exceeded rate limits: Your table exceeded quota for table update operations. For more information, see https://cloud.google.com/bigquery/docs/troubleshoot-quotas", "status" : "INVALID_ARGUMENT" } 

The BigQueryRetryAlgorithm.shouldRetryBasedOnBigQueryRetryConfig logic will work as follows:

  1. Apply a case insensitive contains check on the error message to check if it should be retied
  2. If the contains check fails then it will apply a RegEx pattern to determine if the error message can be retried.

Fixes #1498 ☕️

@prash-mi prash-mi requested review from a team and loferris August 11, 2021 05:29
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/java-bigquery API. label Aug 11, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 11, 2021
@stephaniewang526 stephaniewang526 merged commit ec68c11 into googleapis:master Aug 11, 2021
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 googleapis/java-bigquery API. cla: yes This human has signed the Contributor License Agreement.

2 participants